# リスト7.2.1:Line()関数のキーワード引数でタイトルを設定
from bokeh.charts import Line
plot_high = Line([1, 2, 3], title="high-level")
# リスト7.2.2:figure()関数のキーワード引数でタイトルを設定
from bokeh.plotting import figure
plot_mid = figure(title="mid-level")
# リスト7.2.3:属性の参照
print(plot_high.title.text)
print(plot_mid.title.text)
high-level mid-level
# リスト7.2.5:属性の設定
plot_high.title.text = "High-Level"
plot_mid.title.text = "Mid-Level"
print(plot_high.title.text)
print(plot_mid.title.text)
High-Level Mid-Level