Skip to content

use LaTeX to clean up plot labels #1

Open
mdb15106 opened this issue Apr 12, 2020 · 0 comments
Open

use LaTeX to clean up plot labels #1

mdb15106 opened this issue Apr 12, 2020 · 0 comments

Comments

@mdb15106
Copy link

Matplotlib lets you use LaTeX notation to clean up plot labels. For example, instead of plt.xlabel('mf/m0'), you could use plt.xlabel('$m_f/m_0$') to have subscripts appear, or even plt.xlabel('$\dfrac{m_f}{m_0}$') to have the label appear formatted as a fraction.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant