☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

How to set axis_label_text_font,eg:times roma,we need more example

Community Supportbokehjs
p-himik
p-himik

You just set it as any other attribute. There’s nothing special about it.

from bokeh.io import show
from bokeh.layouts import column
from bokeh.plotting import figure

p = figure()
p.x(0, 0)

p.xaxis.axis_label = "Hello there"
p.xaxis.axis_label_text_font = 'Times New Roman'
p.yaxis.axis_label = "I'm an axis"
p.yaxis.axis_label_text_font = 'Helvetica'

show(column(p))

⌁   Link to post

End of archived discussion · Replies are disabled