-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.backend: pdf
Milestone
Description
Bug report
Bug summary
the plt.imsave(..) method creates a blank file using the .pdf/.eps format.
Code for reproduction
import matplotlib.pyplot as plt
import numpy as np
data = np.arange(100*100).reshape(100, 100).astype(float)
plt.imsave("test.pdf", data, origin="lower", format="pdf") #same behavior also with eps instead of pdfActual outcome
A blank .pdf/.eps is created (see test.pdf)
Expected outcome
A non-blank .pdf which shows the same plot as the .png version of the code:
Matplotlib version
- Operating System: Windows 10 Pro x64
- Matplotlib Version: 2.0.2
- Python Version: 3.6
- Other Libraries: numpy 1.12.1
I installed matplotlib via anaconda.
Metadata
Metadata
Assignees
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.backend: pdf
