Label alignment problems

Question: How can I align Y-Axis names to de left?

I don’t actually believe it is possible with axis labels. [1] I think you would need to use “manual” labels (e.g. Label or LabelSet or text) with their anchor set to one of the “left” options, as I stated earlier.

Finally, can you suggest any doc on how to use a local font (an otf file specifically) in a bokeh plot?

AFAIK you would need to embed the Bokeh output in a custom HTML template, and then include the fonts in the <head> of the template, as you would in any HTML page. That is, Bokeh does not have any APIs for including fonts. I think there may be a relevant example here:


  1. We pass on the text align property generically down to the canvas APIs. It only applies to the bounding box that the text lives in, though, and in this case, I believe each axis label has a tight bounding box, making the text align property not-useful in this instance. Correct me if I am mistaken, @mateusz ↩︎

1 Like