From: John H. <jdh...@ac...> - 2006-07-31 17:22:48
|
>>>>> "JIM" == JIM MacDonald <ji...@ji...> writes: JIM> My second problem involved the resolutions of the image. I'd JIM> like to preserve the resolution of my image in the PS output, JIM> but I can't figure out how to stop the image being resized JIM> and interpolated. Obviously you need to do this for the There are two kinds of images in matplotlib -- AxesImage and FigureImage. By definition, the AxesImage is interpolated to fit into the Axes box. You can control the aspect ratio of the interpolation, but it will be interpolated. FigureImage, on the other hand, performs a pixel dump to the postscript canvas at the location you tell it to -- see examples/figimage_demo.py. It should like you are more interested in the latter. If the figure image doesn't work for you, describe your use-case in some detail and why neither work and we'll see if we can accommodate it. JDH |