Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Benjamin Root
On Wed, Oct 6, 2010 at 7:31 PM, Michael Cracraft wrote: > You are correct about the version. I was just working with the version > installed on Fedora 13, and the recache works. Looks like a working > solution for now. > > Thanks, > Michael > > Just as a side note because 'tis the season for Li

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Michael Cracraft
You are correct about the version. I was just working with the version installed on Fedora 13, and the recache works. Looks like a working solution for now. Thanks, Michael On Wed, Oct 6, 2010 at 8:18 PM, Jae-Joon Lee wrote: > I believe that you're using older version of mpl (<1.0) and this

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Michael Cracraft
I am running python 2.6.4 and matplotlib 0.99.1.1. I was using the TkAgg backend with my original problem, but I tried GTKAgg with the same result. Here are two sample codes. One works and the other does not. This one works ... plt.ion() x = np.arange(0,2*np.pi,0.01) y = np.sin(x) line, = plt.

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Jae-Joon Lee
I believe that you're using older version of mpl (<1.0) and this is a known issues, which has been fixed. http://sourceforge.net/tracker/?func=detail&aid=2917758&group_id=80706&atid=560720 Try to add L1.recache() after set_ydata. Regards, -JJ On Thu, Oct 7, 2010 at 3:06 AM, Michael Cracraf

Re: [Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Benjamin Root
On Wed, Oct 6, 2010 at 1:06 PM, Michael Cracraft wrote: > I have a code that continuously modifies a numpy.ndarray variable. Then, I > use set_ydata on the matplotlib.lines.Line2D object to the same ndarray > variable. Then, I call fig.canvas.draw() to redraw the figure, where fig is > Figure o

[Matplotlib-users] Issue with Redrawing a Line (numpy.ndarray, set_ydata, and draw)

2010-10-06 Thread Michael Cracraft
I have a code that continuously modifies a numpy.ndarray variable. Then, I use set_ydata on the matplotlib.lines.Line2D object to the same ndarray variable. Then, I call fig.canvas.draw() to redraw the figure, where fig is Figure object. However, the line on the graph never changes. I print a f