From: Hans F. <H.F...@so...> - 2004-09-21 07:02:18
|
Apologies: I noticed that the my mail client seems to have broken the indentation in my previous email. This time I will attach the program. Apologies for the 2nd email. Regards, Hans On Tue, 21 Sep 2004, Hans Fangohr wrote: > Dear all, I am trying to use gcurve to continuously display the last N > points of a scalar function. More concrete: a simulation goes through > a number of iterations and for each iteration, I'd like to plot one > scalar value. I want to display the last N points using gcurve. > > Since I didn't see a way of deleting individual points from gcurve, I > have written the little class (appended below) which does nearly what > I want. What it doesn't do is to auto-scale the graph so that the last > N points are displayed in optimal resolution. I am happy to compute > the required min and max values for the y-axis myself but don't know > how to pass it to vpython in the correct way. > > Can anybody help me? Or is this plotting of last N-points achievable > much easier using another approach? > > Thank you, > > Hans > > > Please find program attached. |