Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
Bug summary
Saving matplotlib polar plots on Windows 7 and Windows 10, with MiKTex 2.9.7.000, fails for some formats (e.g., pdf, svg) and works for others (e.g., png, jpg)
Code for reproduction
importmatplotlib.pyplotaspltimportmatplotlibasmplmpl.rcParams['text.usetex']=Trueplt.figure()ax=plt.subplot(111,polar=True)plt.savefig('foo.png')# Worksplt.savefig('foo.jpg')# Worksplt.savefig('foo.tif')# Works# plt.savefig('foo.pdf') # Fails# plt.savefig('foo.svg') # Failsplt.show()
Actual outcome
"Error saving .... " window pops up with error code b'tcss1000' for pdf, and b'tcss3583' for svg. (The numbers change)
Matplotlib version
- Operating system: Windows 7 & 10
- Matplotlib version: 2.2.2 or 3.0.3
- Matplotlib backend (
print(matplotlib.get_backend())
): Qt5Agg - Python version: 3.6
- Jupyter version (if applicable): N/A
- Other libraries: N/A
Installed via Anaconda3