<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/11 Francesco Montesano <span dir="ltr"><<a href="mailto:franz.bergesund@gmail.com" target="_blank">franz.bergesund@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>2013/1/11 Francesco Montesano <span dir="ltr"><<a href="mailto:franz.bergesund@gmail.com" target="_blank">franz.bergesund@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear list,<div><br></div><div>I use notebook mostly for testing reasons. Furthermore, as I use mostly numpy and matplotlib, I have in ~/.ipython/profile_default/startup/ two files:<br>
</div><div>00-pylab.ipy, that calls %pylab (in my matplolibrc I set the backend to QtAgg)</div>
<div><div>01-interactive.py: call plt.ion()</div><div><br></div><div>I have just discovered Pandas and I am documenting some of the tests that I have done, and I would like to have an inline plot in my notebook. </div>
<div>From my understanding I should be able to toggle between backends using <i>%pylab inline </i>and <i>%pylab ... </i>. </div><div>The cell where I do the plotting is:</div><div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div>%pylab inline</div><div>north.plot(x=0, y=1, linestyle='none', marker='.', label="cat north", color='b')</div><div>south.plot(x=0, y=1, linestyle='none', marker='.', label="cat south", color='g')</div>
<div>north.plot(x=0, y=1, linestyle='none', marker=',', label="mocks north", color='r')</div><div>south.plot(x=0, y=1, linestyle='none', marker=',', label="mocks south", color='k')</div>
<div>plt.legend()</div></blockquote><div><br></div><div>When I execute it, I get a long error ending in "RuntimeError: Cannot activate multiple GUI eventloops"</div><div>Is this to be expected?</div></div></blockquote>
</div></div></div></div></div></blockquote><div><br></div><div style>bump: any idea about why this error is happening?</div><div style><br></div><div style>Francesco</div><div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I can anyway display the figure with dispay(plt.gcf()). Is this equivalent to have pylab inline?</div>
</div></blockquote></div></div><div>I can answer myself: not really. If I call display it shows the figure in the browser and in the external window</div>
<div><br></div><div>Fra</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks in advance,</div><div><br></div><div>
Francesco</div></div>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>