<div dir="ltr">Thanks a lot! this will save a lot of effort. <div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 24, 2013 at 4:53 PM, Matthias BUSSONNIER <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Le 24 nov. 2013 à 15:34, Ronen Abravanel a écrit :<br>
<div class="im"><br>
> Hello all,<br>
><br>
> I'm using IPython and matplotlib and like the fact that most of my plots are inline. But once in a while, I want to zoom into a plot, pan it a bit and so on.<br>
><br>
> Is there any way (on stable version of IPython \ matplotlib ) to replot a plot to a new window (\ different backend?)<br>
<br>
</div>%matlpotlib qt/osx/wx/inline...<br>
allow to switch backend on recent enough version of both IPython and MPL.<br>
<br>
With non inline backend gca()/ gcf() should grap and show the current graph inline.<br>
--<br>
M<br>
<br>
<br>
---<br>
 %matplotlib [gui]<br>
<br>
Set up matplotlib to work interactively.<br>
<br>
This function lets you activate matplotlib interactive support<br>
at any point during an IPython session.<br>
It does not import anything into the interactive namespace.<br>
<br>
If you are using the inline matplotlib backend for embedded figures,<br>
you can adjust its behavior via the %config magic::<br>
<br>
  # enable SVG figures, necessary for SVG+XHTML export in the qtconsole<br>
  In [1]: %config InlineBackend.figure_format = 'svg'<br>
<br>
  # change the behavior of closing all figures at the end of each<br>
  # execution (cell), or allowing reuse of active figures across<br>
  # cells:<br>
  In [2]: %config InlineBackend.close_figures = False<br>
<br>
Examples<br>
--------<br>
In this case, where the MPL default is TkAgg::<br>
<br>
  In [2]: %matplotlib<br>
  Using matplotlib backend: TkAgg<br>
<br>
But you can explicitly request a different backend::<br>
<br>
  In [3]: %matplotlib qt<br>
<br>
positional arguments:<br>
 gui  Name of the matplotlib backend to use ('gtk', 'inline', 'osx', 'qt',<br>
    'qt4', 'tk', 'wx'). If given, the corresponding matplotlib backend is<br>
    used, otherwise it will be matplotlib's default (which you can set in<br>
    your matplotlib config file).<br>
<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br></div>