Resetting the gcurve object
Seth Morton <[email protected]>
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev