From: Seth M. <sm...@ps...> - 2011-06-09 02:37:58
|
Hello all, I am trying to develop an application that can display how a function changes as different parameters are altered. For example, let's say that I want to plot y = sin(kx). I have a slider that controls the value of k, and I then replot the function with the new k whenever the slider is moved. By default, it appears that the gcurve object keeps all previously plotted data on the gdisplay. While I can envision situations where this is a benefit (like for binning a histogram), for this application I would like only plot the current value of k and not retain the plot of all previous values. In other words, I would like to reset the gcurve object before replotting with the new k. I haven't found an any easy way to reset the gcurve object without deleting the gdisplay object and then opening a new one. Is there an easy way to reset the gcurve object? Thanks, Seth Morton |