<div dir="ltr">See the spline example in this gist <a href="https://gist.github.com/tacaswell/d1afcf015fc202c311bdcc477e1ca3bd">https://gist.github.com/tacaswell/d1afcf015fc202c311bdcc477e1ca3bd</a> and <a href="http://matplotlib.org/users/event_handling.html">http://matplotlib.org/users/event_handling.html</a><div><br></div><div>The trick is to register an instance method into the callbacks so that you can keep state between calls.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 3, 2016 at 6:12 AM grivet <<a href="mailto:grivet@cnrs-orleans.fr">grivet@cnrs-orleans.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I would like to go further and, in fact, do the following:<br>
<br>
     repeat n times<br>
         click inside a figure<br>
         retrieve and store the pointer coordinates<br>
         show a mark (or circle or whatever) at this point<br>
<br>
Thank you for your suggestions<br>
JP Grivet<br>
<br>
> Right again! A separate window is now created and I can click inside<br>
> and retrieve the pointer coordinates.<br>
> Thanks a lot,<br>
> JP Grivet<br>
><br>
>> Ok, I do not use spyder so I may be wrong, but it looks that it works if<br>
>> in the preferences windows (Tools -> Preferences)<br>
>> in the option:<br>
>>                "IPython console"<br>
>> In the tab:<br>
>>           "Graphics"<br>
>> you select the Backend:<br>
>>           "Automatic"<br>
>><br>
>> You probably have to restart spyder for it to work.<br>
>><br>
>> Regards,<br>
>>     Juan<br>
<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>