Re: [Matplotlib-users] imshow inconsistency from version 0.91 to 0.98

2008-09-25 Thread Jouni K . Seppänen
"John Hunter" <[EMAIL PROTECTED]> writes: > When I run your script with 91.5 (svn branch) vs 98.3 (svn head), I > see that the text labels do not align with the images (PDF only, not > Agg) in 98.3 and not 91.5. Is this the problem you are describing? It's not exactly alignment, it's that the

Re: [Matplotlib-users] imshow inconsistency from version 0.91 to 0.98

2008-09-25 Thread Haibao Tang
John, thanks for the swift reply. 1) Yes. I later found that whenever I call imshow with extent option more than once, the coordinates will be off. 2) Here is a sample script - from pylab import * img = imread("image.png") imshow(img) axis("off") savefig(

Re: [Matplotlib-users] imshow inconsistency from version 0.91 to 0.98

2008-09-25 Thread John Hunter
On Wed, Sep 24, 2008 at 2:16 PM, Haibao Tang <[EMAIL PROTECTED]> wrote: > 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) > xs

[Matplotlib-users] imshow inconsistency from version 0.91 to 0.98

2008-09-24 Thread Haibao Tang
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))