Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Latex in Bokeh axis label

Tags:

latex

bokeh

Bokeh does not handle Latex. A solution has been proposed: http://docs.bokeh.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?

like image 760
Arthur Avatar asked Jan 15 '17 18:01

Arthur


1 Answers

Bokeh 2.4 adds support for LaTeX (and MathML) to some elements in Bokeh. Currently, you can use LaTeX on axis labels, tick labels, div widgets, and paragraph widgets. LaTeX support for more elements should be added soon. For more information about the new math text feature and how to use them, see the Bokeh 2.4 release blogpost, the new blackbody radiation example, and the Bokeh user guide!

enter image description here

like image 65
bigreddot Avatar answered Oct 30 '22 13:10

bigreddot