On Wed, Jun 10, 2009 at 6:22 AM, Ole Streicher <ole-usenet-s...@gmx.net>wrote:

> Hi Mathias,
>
> Matthias Michler <matthiasmich...@gmx.net> writes:
> > you can reset the ydata using:
> > ydata = myline.get_ydata()
> > ydata += 50
> > myline.set_ydata(ydata) # pass new data to line object
> > Does this work for you?
>
> Yes. Altough I dont understand why I have to set it again (the ydata
> still belong to the curve)


The when you use set_data, the widget is aware the data has changed and sets
its _invalid member to True, which triggers a full redraw.  When you just
modify the array, the line object isn't aware that the data has changed, and
thus just redraws from its (I believe) cached version.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from Norman, Oklahoma, United States
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to