Hi all,

I have some broken scripts recently due to the upgrade from 0.91 to 0.98,
most of them related to the imshow function.
For example, when I run the following script,

--------------------------------------------------------
from matplotlib.cm import *
from pylab import *

figure(1, (8, 10))
root = axes([0, 0, 1, 1])

xstart, ystart = .03, .97
rows, cols = 30, 2  # to accomodate 58 instances
row_interval, col_interval = .94/rows, .94/cols

cm_keys = [x for x in sorted(datad.keys()) if not x.endswith("_r")]
print len(cm_keys)

X = [0, 1]
Y = array([X, X])

j = 1
for k in cm_keys:
    imshow(Y, extent=(xstart, xstart+.7*col_interval,
                      ystart, ystart+.5*row_interval),
cmap=get_cmap(name=k))
    root.text(xstart+.75*col_interval, ystart, k, size=9)
    xstart += col_interval
    if j%2==0:
       xstart = .03
       ystart -= row_interval
    j += 1

root.set_xlim(0, 1)
root.set_ylim(0, 1)
root.set_axis_off()
savefig("cm_instances.pdf")

----------------------------------------------

Different versions gave me different results, with only the old version
appears to be correct.

In addition, when I wish to imshow a JPG image through PIL, the newer
version gave me very low resolution. Can someone duplicate my observation? I
appreciate any solution, thanks.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to