From: Christopher B. <Chr...@no...> - 2008-10-06 18:16:50
|
David Goldsmith wrote: > I feel like I must be missing something yup -- though it's an understandable miss... > Attached are the results on my computer (see usage details below). > Granted, I'm increasing the resolution each iteration, you are increasing the resolution of the figure, and of your calculations, but NOT of the output image. The hint was that every image was the same size: 1200X900 , which is 12"x9" at 100 dpi. It turns out that print_figure() doesn't respect the figures (native DPI), it defaults to 100 dpi, but you can override it: > canvas.print_figure("test"+str(DPI)+"dpi.png", dpi=DPI) Then you'll get what I think you want. Maybe this will help: http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize though it there, I talked about Figure.savefig(). I don't know if there is a difference between that and Figure.print_figure() -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |