Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove italicised units in labels of SDEC plot in matplotlib #1445

Closed
jaladh-singhal opened this issue Feb 1, 2021 · 0 comments · Fixed by #1446
Closed

Remove italicised units in labels of SDEC plot in matplotlib #1445

jaladh-singhal opened this issue Feb 1, 2021 · 0 comments · Fixed by #1446

Comments

@jaladh-singhal
Copy link
Member

To remove the italicised units, you could try something along the lines of:
plt.ylabel('Luminosity (erg $\mathrm{s^{-1}}$ $\mathrm{\AA^{-1}}$)')
This is an example where the labels won't be italicised, since they are in \mathrm{}

Originally posted by @jamesgillanders in #1442 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant