Skip to content

LaTeX #48

Answered by newville
mhx-gh asked this question in Q&A
Mar 6, 2022 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

@mhx-gh Yep, this is inherited exactly from matplotlib, which supports a very good subset of latex. Just put latex math formatting between '$', and it should all work. Several of the examples use latex for labels.

Note that some escape sequences (say, \t) would be interpreted as python characters, so it is generally safest to use r-strings, so that labels might best be done with something like r'$\phi(\tau)$ (degrees)'

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@mhx-gh
Comment options

@newville
Comment options

@mhx-gh
Comment options

Answer selected by mhx-gh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants