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

text.usetex : True clashes with examples #147

Open
PeterDenton opened this issue Nov 17, 2021 · 2 comments
Open

text.usetex : True clashes with examples #147

PeterDenton opened this issue Nov 17, 2021 · 2 comments

Comments

@PeterDenton
Copy link

I have "text.usetex : True" in my matplotlibrc file. In the examples there are strings of text which sometimes have underscores, derived from file names. While this is only for an example and is technically my fault, it probably isn't a super uncommon scenario. An easy fix is to put "mpl.rcParams['text.usetex'] = False" in the plotting examples if you want.

@JostMigenda
Copy link
Member

This sounds like a reasonable request to me. But before we go ahead and manually edit every single one of the many example notebooks and scripts included in SNEWPY, it’s probably worth taking a moment to think: Are there any other common settings that we should take into account? (And if so, is it worth creating a custom style sheet for SNEWPY?)

@PeterDenton
Copy link
Author

I thought about a custom style sheet too, but I only suggested turning usetex off because that was the only one that broke the examples that I could think of. My other things might change how the plots look, but at least they would be generated. But trying to write a string "asdf_jkl" without dollar signs around it will make matplotlib a bit upset and throw a bunch of latex garbage in the terminal.

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

No branches or pull requests

2 participants