Hi Ole,

I think the ydata of the line is updated, but the plot is not updated. To 
achieve the latter, you need to use set_ydata. I'm sorry if this was your 
original question and I didn't get this.
>From the source code of set_data another way seems to be possbilbe - although 
quite strange:

ydata += 50
# setting the line invalid in order to force a redraw during draw
myline._invalid = True
draw()

Maybe someone else has an idea about that.

regards Matthias

On Wednesday 10 June 2009 13:22:46 Ole Streicher 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)
>
> Thanks,
>
> Ole


------------------------------------------------------------------------------
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