From help-octave-request at bevo dot che dot wisc dot edu Thu Dec 20 11:02:31 2001 Subject: Re: scatter-plotting by color From: John Day To: help-octave at bevo dot che dot wisc dot edu Date: Thu, 20 Dec 2001 11:58:35 -0500 [Commenting on my own help request]: Perhaps I didn't make the data structure clear. I have a 3-column matrix that looks like this: -0.016634,-0.001467,3 -0.005236,-0.003526,2 0.006136,0.003776,4 0.002952,-0.009264,2 I want to scatter-plot cols 1 and 2 such that the plotted points are distinguished by the values in col 3, which are integers in the range 1..16. I know this is not hard to do, but I thought maybe someone had already written a nifty routine to do this, or perhaps I've overlooked an easy one-line solution here. Otherwise it seems I would have to write a function that maps integers into the plot() symbols for color and shape etc. Thanks again, John Day At 07:24 PM 12/19/01 -0500, John Day wrote: >I have a file of 3-tuples (X,Y,C), where C is an integer 1-16, which I >want to scatter-plot, X by Y with C determining the color of the plotted dots. > >Does anyone know or have a ready-made function to do this? I don't care >what the colors are as long as they are unique for each value of C. >Different-shaped dots will do if we run out of colors. > >Thanks, >John Day > > > >------------------------------------------------------------- >Octave is freely available under the terms of the GNU GPL. > >Octave's home on the web: http://www.octave.org >How to fund new projects: http://www.octave.org/funding.html >Subscription information: http://www.octave.org/archive.html >------------------------------------------------------------- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------