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
Concretely, the hotfix prepends underscores to all plot variables, e.g. turning x into_x and only changes the labels later.
This causes a problem with the FacetGrid underlying relplot, which calls tight_layouthere.
For some reason, this causes matplotlib to render the plot with the axis labels including underscores. I believe it happens to find margins, but I am not sure. In any case, the latex render cannot handle the underscores and crashes.
Affected versions
0.11.2 only; version 0.11.1 (without the hotfix) works fine.
@NotSpecial are you still having this issue? I cannot reproduce it on master, using matplotlib 3.5.1. Perhaps matplotlib added something in their latex code to escape leading underscores? This also works fine:
Hi, and first of all thanks for the great library!
I have discovered a problem with a recent hotfix (this line) and latex plotting.
Concretely, the hotfix prepends underscores to all plot variables, e.g. turning
x
into_x
and only changes the labels later.This causes a problem with the FacetGrid underlying relplot, which calls
tight_layout
here.For some reason, this causes matplotlib to render the plot with the axis labels including underscores. I believe it happens to find margins, but I am not sure. In any case, the latex render cannot handle the underscores and crashes.
Affected versions
0.11.2
only; version0.11.1
(without the hotfix) works fine.Steps to reproduce
This raises:
Possible fixes
Prepend with something more latex friendly instead of underscores, e.g.
temp
or anything.The text was updated successfully, but these errors were encountered: