From help-octave-request at bevo dot che dot wisc dot edu Fri Jan 9 15:54:38 2004 Subject: Re: color choice in plotting From: "Henry F. Mollet" To: "Dmitri A. Sergatskov" CC: Octave_post Date: Fri, 09 Jan 2004 13:54:07 -0800 Yes, but how is to be done using gnuplot-style plotting (if it can be called that) as per Octave manual and as per original question? Say we use: octave:7> x = [0:pi/50:10]'; octave:8> data = [x, sin(x), cos(x)]; octave:9> gplot data with lines, data using 1:3 with points sin (x) is red, cos(x) is green and we'd like both to be the same color of our choice. octave:10> gplot data with lines, data using 1:3 with points linetype 1 error: `linetype' undefined near line 10 column 51 error: evaluating plot style command Henry on 1/9/04 1:01 PM, Dmitri A. Sergatskov at dmitri at unm dot edu wrote: > Henry F. Mollet wrote: >> I have checked but it appears that help plot gives only info on MATLAB-style >> plotting. > > Yes. > > from help plot: > > `N' > Interpreted as the plot color if N is an integer in the range > 1 to 6. > > So, plot(t,x,"1;;",t,y,"1;;") > will plot x(t) and y(t) with the same color (red, in case of X11 terminal) > >> Henry > > Regards, > > Dmitri. > > > > ------------------------------------------------------------- > 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 -------------------------------------------------------------