Can you provide a standalone example that exhibits this problem? I'm not able to reproduce this with 0.90.1 and the imshow examples (image_demo.py, image_origin.py).
Which backend are you using? My only wild guess is -- with the Agg backend (possibly others), the image is stored flipped from how Agg wants to render it. So, the image is flipped (not the data, just the stride), then it is drawn, then it is flipped back. If there were an exception in the middle there, the number of flips may not remain even. Are there any exceptions being output? (These exceptions, since they're inside a GUI callback wouldn't necessarily halt the application). Beyond that, you could trace calls to im.flipupd_out and make sure they are even in number. Cheers, Mike John Pye wrote: > Hi all > > I have a problem with 'imshow' under matplotlib 0.90.1-2ubuntu1 on > ubuntu 7.10. I have an 'incidence matrix' created using the 'imshow' > command, and it works well except for the fact that sometimes when > resizing my window, the incidence matrix flips upside-down. > > Can I control this flipping of the incidence matrix? it seems to me to > be something that has just happened in a recent release of matplotlib, > as my application didn't used to show this problem. > > FYI The code that I'm using to drive mpl is here: > http://ascendcode.cheme.cmu.edu/viewvc.cgi/code/branches/extfn/pygtk/incidencematrix.py?view=markup > > Cheers > JP > > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users