Issue
I am trying to save a large picture (which is actually larger than resolution of my display), however I get the same size png pictures when increasing figsize. So for two example below I get exactly the same files:
import matplotlib.pylab as plt
fig, ax = plt.subplots(nrows=2, ncols=1, figsize=(10, 100))
ax[0].plot([0, 1], [0, 1])
ax[1].plot([0, 1], [0, 1])
fig.savefig('test1.png')
plt.close()
and second:
fig, ax = plt.subplots(nrows=2, ncols=1, figsize=(10, 150))
ax[0].plot([0, 1], [0, 1])
ax[1].plot([0, 1], [0, 1])
fig.savefig('test2.png')
plt.close()
Is there a way to create a larger picture please?
Solution
Thanks to @ImportanceOfBeingErnest, indeed the issue was with PyCharm. (I am using 2017.2.3)
Therefore if anyone's having the same issue - just try outside of PyCharm!
Answered By - mm441
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.