简体   繁体   中英

Use Latex in Bokeh axis label

Bokeh does not handle Latex. A solution has been proposed: http://bokeh.pydata.org/en/latest/docs/user_guide/extensions_gallery/latex.html#userguide-extensions-examples-latex

This is great for adding Latex on top of the canvas. Is there an easy way to use this strategy so we can use Latex in the axis labels?

As of Bokeh 0.13 there is no simple or accessible way to have LaTeX for axis labels. In principle, anyone could create a custom extension subclass of the existing Axis, however the Axis object is probably the most complicated object in all of Bokeh, and extending it to support LaTeX labels would not be trivial in any sense. We hope to be able to turn to this feature in early 2019 (help from new contributions would be valuable).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM