This page demonstrates Python tips and tricks that I use in my everyday programming as an atmospheric science graduate student.
-Brian Blaylock

Wednesday, August 13, 2014

Set figure size after creating image

fig = plt.gcf() #Gets the current figure
fig.set_size_inches(10,10, forward=True) # changes size of figure. Forward must equal True to make the change

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.