0

I am trying to save a figure with a given size. While the size eventually changes, the labels and width of lines all remain intact. I am using the following:

fig = plt.gcf()
mydpi = 100
fig.set_size_inches(470 / mydpi, 575 / mydpi)
fig.savefig('/tmp/fig.png')

How can I scale the image all together? Like when you do fig.show() and then scale it manually by mouse?

CentAu
  • 10,660
  • 15
  • 59
  • 85
  • I'm not able to understand what you are looking for. Can you please add some output images of what you want ? – fixxxer May 30 '15 at 08:06

1 Answers1

-1

Have a look at http://blog.olgabotvinnik.com/prettyplotlib/ . This might be more convenient.

FtoTheZ
  • 386
  • 3
  • 8
  • Looks interesting, but the package author states that it is no longer maintained and recommends users to switch to `seaborn`. In addition, this post does not address the OP's question or how to solve it. – Alexander May 30 '15 at 02:29
  • Yes you are right. The question might be a duplicate of [this](http://stackoverflow.com/questions/332289/how-do-you-change-the-size-of-figures-drawn-with-matplotlib) then – FtoTheZ Jun 01 '15 at 11:26