On Tue, Nov 9, 2010 at 4:33 PM, Garry Willgoose
<garry.willgo...@newcastle.edu.au> wrote:
> I'm using the following code to plot some grided data
>
>        fig1=pylab.figure()
>        contents1=fig1.add_subplot(111)
>        stuff=contents1.imshow(mydata,origin='lower',aspect='equal')
>
> and I find that if I launch the code with 'ipython' the data looks as 
> expected but if I use 'python' then the x-axis annotations are OK but the 
> data is still plotted with the origin in the top left hand corner. I'm using 
> the enthought 6.1 distribution and the version of matplotlib and pylab 
> imported in both cases is the same. I guess one indicator of a major 
> difference is that ipython has the icon bar for the plot at the bottom of the 
> screen but python has the icon bar at the top of the screen. Any clues ... 
> I'd happily just use ipython but I distribute the code to others so I'd like 
> to get it sorted.

Sounds like a backend problem (see
http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
and http://matplotlib.sourceforge.net/users/customizing.html)

First thing you'll want to do is put

import matplotlib
print matplotlib.rcParams['backend']

at the top of your script and run it in both environments and report
what you find.  My guess is one of the environments has a backend that
does not support the image origin argument.

JDH

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to