Is there a way to figure out the optimal dpi for imshow when saving as a png
so that all the pixels are visible?

I do something like the following:

import matplotlib.pyplot as plt
plt.clf()
image = np.random.normal(0,1, (1000,1000))
plt.imshow(I, cmap=plt.cm.gray, interpolation='nearest', aspect='equal')
plt.axis('off')
plt.title('title')
plt.savefig('~/tmp/test.png, dpi=600)

If the size of 'image' is too large or dpi is too small, the elements in the
matrix get blended. I would like to set the dpi to the minimal necessary so
that the elements are distinct.

Any tips appreciated.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to