Re: Resetting the gcurve object
Bruce Sherwood <[email protected]>
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <[email protected]> |
There's something missing in the documentation. The following sequence will erase the gcurve. When you create a gcurve object, one of its pieces is a curve object, and you can get at that curve object as shown here. f = gcurve(.....) ..... f.gcurve.pos = [] Bruce Sherwood On Wed, Jun 8, 2011 at 8:37 PM, Seth Morton <[email protected]> wrote: > 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 > _______________________________________________ > Visualpython-users mailing list > Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/visualpython-users > ------------------------------------------------------------------------------ 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