Sie können mit diesem einem einfachen Titel zu Ihrem Grundstück hinzu:
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)
Nachtrag
Hier ist ein funktionierendes Beispiel einen Pandas Datenrahmen für Sie zum Plotten Kopieren/Einfügen in ein Jupiter-Notizbuch. Es ist weder elegant noch pythonisch. Ich habe es schon lange von verschiedenen SO-Posts bekommen. Tut mir leid, dass ich mich nicht mehr an welche erinnere, also kann ich sie nicht zitieren.
-Code
# 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)
Plot
Frage fragt nach einem mehrzeiligen Plot Titel. – PJW