[IPython-User] [notebook] set axis limits after inline plot?

Simon Wood sgwoodjr@gmail....
Thu Dec 13 12:50:15 CST 2012


On Thu, Dec 13, 2012 at 6:23 AM, Thomas Kluyver <takowl@gmail.com> wrote:

> On 13 December 2012 00:29, Michael Aye <kmichael.aye@gmail.com> wrote:
>
>> is it possible when using --pylab=inline option to change, for example,
>> the x-axis limits of a plot already displayed?
>>
>> I tried to catch the axis object:
>>
>> In [298]:   ax
>> Out[298]: <matplotlib.axes.AxesSubplot at 0x111e30690>
>>
>> and then set it using ax.set_xlim() and a draw() but I guess the
>> results of that don't communicate back to the already inline displayed
>> plot in the notebook?
>>
>
> No, for now, once the plot is displayed, it's essentially a static image,
> and the only way to change it is to recreate it. The matplotlib developers
> have some ideas about how to have interactive plots in the notebook, but
> it's not in place yet.
>

Interactive plots would be a good thing. I often find myself wanting to
zoom or pan on an image after it is plotted in the notebook.


>
> Thomas
>
> _______________________________________________
> 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/20121213/17a175ce/attachment.html 


More information about the IPython-User mailing list