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
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams['text.usetex'] = True
plt.figure()
ax = plt.subplot(111, polar=True)
plt.savefig('foo.png') # Works
plt.savefig('foo.jpg') # Works
plt.savefig('foo.tif') # Works
# plt.savefig('foo.pdf') # Fails
# plt.savefig('foo.svg') # Fails
plt.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