You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When including a tex special character in a plot label, such as in "Reflectance(%)", the % is included verbatim into the generated .tikz file which causes tex to interpret the text after the "%" as a comment.
mathplotlib2TikZ should trap special characters and convert % to %
The text was updated successfully, but these errors were encountered:
There are some ways in which you can make the matplotlib2tikz output fail to compile. The easiest is of course to insert illegal LaTeX text into the labels, e.g.,
Isn't this { a nice bracket?
or
Sweet_underscore.
In the same category falls
Label with %-sign
I believe we shouldn't try to fix all LaTeX errors. Eventually, only the user can do that.
The pylatexenc library can be used to LaTeX-escape special characters. What about an option to apply pylatexenc.latexencode's unicode_to_latex() function to all label strings?
When including a tex special character in a plot label, such as in "Reflectance(%)", the % is included verbatim into the generated .tikz file which causes tex to interpret the text after the "%" as a comment.
mathplotlib2TikZ should trap special characters and convert % to %
The text was updated successfully, but these errors were encountered: