<div dir="auto">Thanks<br><br><div data-smartmail="gmail_signature">Christophe BAL<br>Enseignant Agrégé de Mathématiques<br>Programmeur Python Amateur</div></div><div class="gmail_extra"><br><div class="gmail_quote">Le 20 févr. 2018 20:02, "Éric Depagne" <<a href="mailto:eric@depagne.org">eric@depagne.org</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Christophe,<br>
<br>
I am not sure it's what Ben had in mind (if not, I'm happy to know  how it<br>
should have been done), but here is the way I did it.<br>
<br>
(my _on_move() method is a member of a class)<br>
I added this to the __init__() :<br>
self.counter = 0<br>
<br>
Then I added the following lines to _on_move():<br>
self.counter += 1<br>
if self.counter %2 :<br>
        return<br>
[snip all the details of the update of the plots)<br>
self.counter = 0<br>
<br>
And it updates the plot every other move.<br>
<br>
Éric.<br>
<br>
--<br>
Un clavier azerty en vaut deux<br>
------------------------------<wbr>----------------------------<br>
Éric Depagne<br>
<br>
<br>
</blockquote></div></div>