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

obscure error message when '#' in text #1

Open
elimas9 opened this issue Jan 19, 2022 · 1 comment
Open

obscure error message when '#' in text #1

elimas9 opened this issue Jan 19, 2022 · 1 comment
Assignees

Comments

@elimas9
Copy link

elimas9 commented Jan 19, 2022

As in LaTeX, '#' has to be written '#'.
When using this library, if you wrote '#' by mistake, the error you got is obscure and is not pointing in any way to the actual error in the code.

@loreucci loreucci self-assigned this Jan 19, 2022
@loreucci
Copy link
Owner

Hi, thank you for the report. Unfortunately it's not easy to point at the error in the code as the error is raised when using pyplot.show or pyplot.savefig, but the string actually causing the error can be set by any function that adds text to a figure (plot(..., label="#"), title("#") and so on).

However, I've added two wrappers around pyplot.show or pyplot.savefig that at least try to filter out all LaTeX output and print the offending string.

Do you mind trying out commit 3f65d60 and see if that helps?

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