[IPython-User] Different result between typing at the prompt and running from a file on Windows

MinRK benjaminrk@gmail....
Mon Jul 30 12:02:35 CDT 2012


Are you using terminal IPython, or one of the other frontends, perhaps with
inline figures?

On Mon, Jul 30, 2012 at 2:56 AM, Mark Bakker <markbak@gmail.com> wrote:

> Dear List,
>
> I am running matplotlib from IPython and am getting different results when
> running from a file than typing them at the prompt on Windows (this works
> fine on my Mac).
> I am trying to determine the position of the axes after doing an imshow
> with maplotlib. I have 5 lines of code:
>
> from pylab import *
> c = ones((10,20))
> ax = imshow(c)
> show()
> print ax.get_axes().get_position()
>
> On my Mac I get:
> run testimage
> Bbox(array([[ 0.125     ,  0.24166667],
>        [ 0.9       ,  0.75833333]]))
>
> On Windows I get:
> run testimage
> Bbox(array([[ 0.125, 0.1 ],
>        [0.9, 0.9 ]]))
>
> Any thoughts? When I type the commands in at the IPython prompt it works
> most of the time (on Windows), but it never works when running the file.
> What in the world could be different?
>
> Thanks for your help,
>
> Mark
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120730/838e12d2/attachment.html 


More information about the IPython-User mailing list