On Sun, Dec 27, 2009 at 7:31 PM, Eric Firing <efir...@hawaii.edu> wrote: > I don't understand what your script, below, is intended to do or show. I > haven't run it with mpl prior to my change. With the change, it simply > draws a single line, or at least that is all I see on the plot.
Before your change, it draws two different lines. Anyhow, another example, import matplotlib.pyplot as plt ax = plt.subplot(111) a = [0, 1] l1, = ax.plot(a) l1.set_ydata(a) a[1] = 0.5 plt.show() The above code draws a line from (0,0) to (1, 0.5), not (0,0) to (1,1). And my question is whether we want this behavior. I think the issue is more subtle. If the recaching is done somehow before the mutable data changes, the change has no effect. On the other hand, if the recaching is done after the change (as in the above example), the change is effective. Regards, -JJ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users