[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

plotting question

From: Jonathan Nichols
Subject: plotting question
Date: Fri, 14 Mar 2003 16:37:29 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

hello all,

i have a plotting question that i was wondering if you could help with. i have a set of x,y pairs, each of which has a z value. i would like to create a 2-D plot where every x,y pair has a point associated with it, whose color indicates the magnitude of the z value.

ideally, i would like to be able to use the colormap feature so that i can use any color for the points. if this is possible, how do i tell the plot function to use a color from the colormap? or is it done with the gset command?

if this is not possible, i can use the format feature of the plot() fuction which gives me a choice of one of the red, green, blue, cyan, magenta, brown colors.

   one of the methods i have tried is the following:

   hold on


the problem with this is that it puts a plot legend in the upper right hand corner of the plot. since there are hundreds of points in this dataset, the entire plot is covered with "line 123" legend text.
   if i use the above method, how do i get rid of the legend text?



Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]