Another way to solve this problem is to not use the figsize keyword when
creating the Figure. Instead only adjust the dpi. For example:

w,h=fig.get_size_inches()
target_width_pix=300
dpi=target_width_pix/w
canvas.print_figure(fname1,dpi=dpi)


-- 
View this message in context: 
http://old.nabble.com/png-is-clipped-tp27327004p27333529.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to