Re: [Matplotlib-users] Making an interactive plot faster

2013-06-25 Thread Michiel de Hoon
draw_idle). Best, -Michiel. From: Thomas Robitaille To: Michael Droettboom Cc: matplotlib-users@lists.sourceforge.net Sent: Tuesday, June 25, 2013 9:45 PM Subject: Re: [Matplotlib-users] Making an interactive plot faster Hi Mike, Thanks for the

Re: [Matplotlib-users] Making an interactive plot faster

2013-06-25 Thread Thomas Robitaille
Hi Mike, Thanks for the suggestion - however, this doesn't change the FPS. From my experiments so far, it seems using draw_artist would be the best bet, but any ideas why it doesn't work with the MacOS X backend? https://github.com/matplotlib/matplotlib/issues/166 Cheers, Tom On 24 June 2013 1

Re: [Matplotlib-users] Making an interactive plot faster

2013-06-24 Thread Michael Droettboom
Have you tried using "draw_idle"? That will schedule the draw for the next time the event loop is idle. Mike On 06/24/2013 07:39 AM, Thomas Robitaille wrote: > Hi everyone, > > The following shows an example of a simple data viewer which includes > a slider, a bitmap, and a scatter plot: > > ""

[Matplotlib-users] Making an interactive plot faster

2013-06-24 Thread Thomas Robitaille
Hi everyone, The following shows an example of a simple data viewer which includes a slider, a bitmap, and a scatter plot: """ import numpy as np from matplotlib import pyplot as plt from matplotlib.widgets import Slider fig = plt.figure() ax1 = fig.add_axes([0.1, 0.1, 0.4, 0.7]) image = ax1.im