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.
On Wed, Jun 10, 2009 at 6:22 AM, Ole Streicher <ole-usenet-spam@…361…> wrote:
Matthias Michler <MatthiasMichler@…361…> 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)
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from Norman, Oklahoma, United States