On Friday, March 21, 2008 at 10:47:25 (-0700) tex c214 writes: > Hi Plplot users, > > I am trying to draw the data that occupies several columns for an x-y plot > using plplot-tcl. The x index is stored in a 1D matrix "t". A 2D matrix, > "d", is defined to store the data. Each column in "d" is the data for a > variable. The question is how to refer to a column in a 2D tcl matrix? For > example, how to plot the first column of "d" versus "t"? I tried plline > 1000 t d 0 *, but didn't work.
The plplot tcl matrix bindings are pretty simple, and don't support what you're trying to do. It would be very cool if they did. :) A much more capable tcl matrix facility has been on my wish list since '95, but I haven't done anything with them for years. I did find scripting gui capabilities to be much nicer for its immediate feedback. Some of the stuff one might support includes slicing as you've mentioned, subranges, etc. Then at least it'd be just a few lines to do a copy & plline call, without changing the bindings. But instead you'll need to do an element-by-element copy to a 1-d matrix. -- Maurice LeBrun ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general