Re: [Matplotlib-users] updating a basemap

2008-10-12 Thread Mathew Yeates
never mind. Got it working. One annoying thing, though, when the line reaches the edge of the figure, a line is drawn horizontally to the other side. This doesn't happen when I display all of the points at once. Mathew Mathew Yeates wrote: > something isn't working > In my main routine I have >

Re: [Matplotlib-users] updating a basemap

2008-10-12 Thread Jeff Whitaker
Mathew Yeates wrote: > something isn't working > In my main routine I have > xpt,ypt= m(lons[0:500],lats[0:500]) > outlines=m.plot(xpt,ypt,'r-') #m is my basemap, outlines is a list of > size 1. Huh? Mathew: It's one line, so the list has one Line2D object. > > then in my update routine I have >

Re: [Matplotlib-users] updating a basemap

2008-10-12 Thread Mathew Yeates
something isn't working In my main routine I have xpt,ypt= m(lons[0:500],lats[0:500]) outlines=m.plot(xpt,ypt,'r-') #m is my basemap, outlines is a list of size 1. Huh? then in my update routine I have counter=0 def update(): global counter xpt,ypt= m(lons[counter*500:(counter+1)*500],la

Re: [Matplotlib-users] updating a basemap

2008-10-12 Thread Jeff Whitaker
Mathew Yeates wrote: > Hi > > I see the example of updating a plot in > examples/animation/gtk_timeout.py where the 2 lines > > line.set_ydata(np.random.rand(10)) > fig.canvas.draw_idle() > > > > What is the equivalent when I want to update a Basemap with new > latitudes and longitudes

[Matplotlib-users] updating a basemap

2008-10-12 Thread Mathew Yeates
Hi I see the example of updating a plot in examples/animation/gtk_timeout.py where the 2 lines line.set_ydata(np.random.rand(10)) fig.canvas.draw_idle() What is the equivalent when I want to update a Basemap with new latitudes and longitudes and I have done m=Basemap(..) m.plot(