How can I change ticks label sizes using Python's Bokeh?

Hi all,

You can find this question in stackoverflow:

Basically I’m trying to plot some data in a line plot and all I want is to set a different size to tick labels.

Here is an example of my code:

from bokeh.plotting import figure, show
from bokeh.models import Legend, LinearAxis

import numpy as np
x = list(range(10))
y = list(range(10))

plot = figure(plot_width=900, plot_height=600)

plot.xaxis.axis_label="xaxis_name"
plot.xaxis.axis_label_text_font_size = "25pt"
plot.xaxis.axis_label_text_font = "times"
plot.xaxis.axis_label_text_color = "black"

plot.yaxis.axis_label="yaxis_name"
plot.yaxis.axis_label_text_font_size = "25pt"
plot.yaxis.axis_label_text_font = "times"
plot.yaxis.axis_label_text_color = "black"

plot.line( x, y, line_width=4, line_color='red', legend="arbitrary_line" )

plot.legend.location = "top_left"
plot.legend.label_text_font_size = "21pt"
plot.legend.label_text_font = "times"
plot.legend.label_text_color = "black"

show(plot)

This is what the output looks like:

Please note that in the current plot there is a big different between the size of x_axis label text and the tick numbers. How can I change the size of the ticks label using Python in Bokeh for this example?

Any insight would be appreciated.

Cheers,

Leo