Comments (2)
Example plot from Bokeh tutorial is working well:
https://docs.bokeh.org/en/3.0.2/docs/user_guide/styling/mathtext.html
`` Bokeh uses the MathJax library to handle LaTeX and MathML. See the official MathJax documentation for more information on MathJax.''
from numpy import arange, pi, sin
from bokeh.models.annotations.labels import Label
from bokeh.plotting import figure, show
x = arange(-2*pi, 2*pi, 0.1)
y = sin(x)
p = figure(height=250, title=r"\[\sin(x)\text{ for }x\text{ between }-2\pi\text{ and }2\pi\]")
p.circle(x, y, alpha=0.6, size=7)
label = Label(
text="$$y = \sin(x)\$$",
x=150, y=130,
x_units="screen", y_units="screen",
)
p.add_layout(label)
p.yaxis.axis_label = r"\[\sin(x)\]"
p.xaxis.axis_label = r"\[x\pi\]"
show(p)
![image](https://private-user-images.githubusercontent.com/21962765/298394883-9bd7dbfd-f38b-4a02-a215-9cffdef8ea4b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ4MjE0NTQsIm5iZiI6MTcxNDgyMTE1NCwicGF0aCI6Ii8yMTk2Mjc2NS8yOTgzOTQ4ODMtOWJkN2RiZmQtZjM4Yi00YTAyLWEyMTUtOWNmZmRlZjhlYTRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA0VDExMTIzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZkNjY0MDQ5MmE3YmE2NjIzZGNjZmJmYzc0NDNmZDc5OWQ3NDVlNzNjZjM4M2UyMjVmMGI3YmJkMzMyZDU4MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.v93twzi28JWtBbrQL_oBR1mKi8wjO5r5_uZLdyHB8Yk)
from rootinteractive.
Temporary solution - adding figure with latex in first place
This issue was fixed for a moment in the template in recent pull request #351
It is not yet generic solution, therefore not yet closing
from rootinteractive.
Related Issues (20)
- Migration to bokeh 3.0
- RDataFrame simplifications - numpy/python syntax HOT 19
- Making dashboard reusable snapshots
- Making parametrizable templates
- Variable metadata support for variables (columns, aliases) in RootInteractuve - AxisLabel, Description, HOT 2
- Latex labels in RootInteractive - https://docs.bokeh.org/en/2.4.1/docs/user_guide/extensions_gallery/latex.html HOT 2
- Summary table - for the selection applied HOT 1
- Missing protection in the spinner creation HOT 1
- Webasm function in RootInteractive - prototype (Unfolding, linear algebra) - C++, Rust
- RandomForest def predictRFStat(rf, X, statDictionary,n_jobs) optimization (memory and CPU) HOT 2
- Ndimensional Linear regression in the RootInteractive - user interface specification https://en.wikipedia.org/wiki/Linear_regression HOT 1
- ROOT tree draw like C++ interface for interactive visualisation
- Better Error handling in cases of invalid widget specification
- Domain specific language on top of RDF (range, nearest, "rolling") - extending #297 HOT 2
- Custom variables non reacting in case previous sysntax problem in the widget
- Domain secific language using RDataFrame - documentation #335 & #297 HOT 1
- Parameterized Template -snapshot configuration on server and on client (relates. to #302) HOT 3
- New template function - extending getDefaultVars with additions of weight and reference weight + scale (e.g resolution scale.) HOT 1
- Statistics cuts for the aggregated statistic drawing (number of entries in bin, STD cut)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rootinteractive.