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
Just in case anyone finds this thread with a similar issue: This is an issue on Linux, attempting to use Arial fonts and PDF backends. They don't play very well, and seaborn modifies rcparams to use Arial by default. I was able to resolve the issue by forcing seaborn to use DejaVu Sans, either by
sns.set(font='DejaVu Sans')
or by directly modifying the rcmod.py file within the seaborn library, changing the line that modifies the font families in the set() function:
"font.sans-serif": ["DejaVu Sans", "Arial", "Liberation Sans",
"Bitstream Vera Sans", "sans-serif"],
That last bit worked for me and I no longer have to change the font every time.
Bug report
Bug summary
In matplotlib 2.0, when using plt.savefig() as a pdf, the negative sign is removed from the y tick labels.
import matplotlib.pyplot as plt
test.pdf
Matplotlib 2.0.0
Python 3.5.2, Linux Mint 18.1
Installed matplotlib from conda, then most recently did conda update --all to upgrade to 2.0.0
Actually, going back and look it appears that this issue is not specific to Matplotlib 2.0.0, but was occurring before that as well.
Actually #2, this appears to be a seaborn issue as it only occurs after I import seaborn. I'll post an issue there.
The text was updated successfully, but these errors were encountered: