On 01/21/2011 11:42 AM, Daryl Herzmann wrote: > Greetings matplotlib users, > > Firstly, thank you so much for a great python plotting library. I use > it daily and find the library very intuitive :) My question deals > with generating raster images at multiple scales without heavy code > modification. My work flow is to generate two versions of the same > plot, one thumbnail (~ 320x320) and then one 'full size' around (~ > 800x800) in PNG format for the web. > > My current methodology is to generate a postscript file and then send > it through ImageMagick's convert to generate the two different sized > images. I find that this works 'good enough for me', but I often run > into problems when I have transparency in the plot and that > information is lost in the translation of formats... I also get > fairly bulky file sizes, but that is probably my fault for not using > the proper convert flags, anyway... > > I have tried messing around with the dpi and figsize settings to the > initial: fig = plt.figure() and fig.savefig() , but I can't seem to > get similiar quality to my hacky method outlined above. Many times, > the fonts look nasty :)
I don't know what would be causing that; we routinely generate png files directly from mpl for a thumbnail and a full-size figure, simply changing the dpi kwarg in savefig, and the results have been satisfactory. Can you post a simple script and pair of png files illustrating the problem? (Here is a page of such thumbnails; clicking on one brings up the full-size version. http://currents.soest.hawaii.edu/uhdas_fromships/kilomoana/figs/) Eric > > Any tips or tricks to make this happen? Thanks again and I sincerely > apologize if I missed a FAQ item , etc on this... > > daryl > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users