matplotlib equivalent for MATLABs truesize()

Posted by Lucas on Stack Overflow See other posts from Stack Overflow or by Lucas
Published on 2010-04-15T12:12:44Z Indexed on 2010/04/16 5:03 UTC
Read the original article Hit count: 160

Filed under:
|
|

I am new to matplotlib and python and would like to display an image so that 1 pixel of the image is actually represented by 1 pixel in the figure. In MATLAB, this is achieved with the command truesize(). How can I do this in Python?

I tried playing around with the imshow() arguments as well as set_dpi() and set_figwidth()/set_figheight(), but with no luck.

Thanks.

© Stack Overflow or respective owner

Related posts about matplotlib

Related posts about python