On Wed, Mar 21, 2012 at 10:36 AM, zentara <[email protected]> wrote:
>
> Once again, I'm experimenting with Tk slider controls,
> and the TriD graph.
>
> Yes, I know that the Tk interface is not yet fully re-implemented
> in the recent release, but it seems to work for me.

Glad to hear it.  Too bad it only works for X11 graphics.

> Work, except for one glitch. I can't figure out how to
> clear the TriD window, so that each graph is displayed
> by itself. The way it works now, is each data set is thrown in on
> top of the previous graph.
>
> The problem seems to be that either release3d() dosn't work,

It does work (stops twiddling).  I'm not sure how that would
interact with the mouse use by Tk.

> or I don't understand how the TriD display holds its data.

I think your data is ok.

> The code below, uses a package method to get Tk involved.
> The idea is to adjust the coefficients with sliders, then press
> the TEST button to draw.
> It seems the new graph is written right on top of the old one.

Yes, you would need to explicitly clear the display in
your widget.

> Does anyone know the way to clear out the old data?

Take a look at the implementation of the various TriD
graphics routines in PDL/Graphics/TriD/TriD.pm and
you'll see how they set things up.  The clear_viewports()
method sounds promising.  You can look at the
source to that if you have to drill down further.

Good luck,
Chris

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to