あなたはこれであなたのプロットに簡単なタイトルを追加することができます。
from bokeh.plotting import figure, show, output_file
output_file("test.html")
p = figure(title="Your title")
p.text(x=[1,2,3], y = [0,0,0], text=['hello\nworld!', 'hello\nworld!', 'hello\nworld!'], angle = 0)
show(p)
補遺ここ
することはあなたのためのパンダのデータフレームをプロットするための実施例でありますジュピターノートにコピー/ペーストする。エレガントでもピジョンソニックでもありません。私は様々なSOの投稿からずっと前にそれを得ました。申し訳ありませんが、私はもう何を覚えていないので、私はそれらを引用することはできません。ボケの最近のバージョンで
コード
# coding: utf-8
from bokeh.plotting import figure, show
from bokeh.io import output_notebook
import pandas as pd
import numpy as np
# Create some data
np_arr = np.array([[1,1,1], [2,2,2], [3,3,3], [4,4,4]])
pd_df = pd.DataFrame(data=np_arr)
pd_df
# Convert for multi-line plotting
data = [row[1].as_matrix() for row in pd_df.iterrows()]
num_lines = len(pd_df)
cols = [pd_df.columns.values] * num_lines
data
# Init bokeh output for jupyter notebook - Adjust this to your needs
output_notebook()
# Plot
p = figure(plot_width=600, plot_height=300)
p.multi_line(xs=cols, ys=data)
show(p)
プロット
質問には、複数行のプロットタイトルが必要です。 – PJW