The title_text_font_size graph property title_text_font_size been deprecated at 0.12.0 and will be removed. Starting with bokeh version 0.12.0, use Plot.title.text_font_size . Below is an example below:
import numpy as np import bokeh.plotting as bp bp.output_notebook() x_points = np.random.rand(100) y_points = np.random.rand(100) p = bp.figure(title='My Title', x_axis_label='X axis', y_axis_label='Y axis') p.title.text_font_size = '8pt' p.scatter(x_points, y_points) bp.show(p)
Similarly, you can change the font size of the axis labels:
p.xaxis.axis_label_text_font_size = "20pt" p.yaxis.axis_label_text_font_size = "20pt"
joon
source share