From: John H. <jd...@gm...> - 2008-03-25 16:53:52
|
On Tue, Mar 25, 2008 at 11:39 AM, Amit Finkler <ami...@gm...> wrote: > I am using matplotlib to dynamically plot a graph with both my x and y > points taken from a measurement device. That is to say, in each iteration of > my while loop I'm reading two variables which I then want to plot with > matplotlib. Odd, are you using an older version of matplotlib (it works for me). Try seeding your data with an initial point xdata = [x] ydata = [y] or setting the axis limits before plotting ax.set_xlim(0,1) ax.set_ylim(0,1) Not sure why you are having problems.... JDH |