☰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

Text/Label not shown when output_backend = 'svg'

Community Support
mfjimenez
mfjimenez

Good day,

I have been working with adding labels to my plots for publishing purposes(they ask for .svg quality). However, I see that bokeh doesn’t show any text or label glyphs when the output_backend is set up as “svg”. I didn’t find another related topic through this forum nor google, so hopefully I am not reposting something well known. :zipper_mouth_face:

Here is a minimal code scenario:

z = figure(title="Testing text plotting with svg support",
           x_range=(0, 8), y_range=(0, 8), width=500, height=500)

z.text(x=[2, 4, 6], y=[2, 4, 6], text=['Dos', 'Cuatro', 'Seis'])

#Change to 'canvas' for default backend setting
z.output_backend = 'svg'
show(z)

I could always add these labels manually by inkscape, but I was wondering if there is a workaround?

Have a great weekend,

Martin

⌁   Link to post

End of archived discussion · Replies are disabled