[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: color choice in plotting
From: |
Henry F. Mollet |
Subject: |
Re: color choice in plotting |
Date: |
Fri, 09 Jan 2004 15:30:20 -0800 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
Thanks for clarification as I thought that I had to learn the lower-level
plotting. I do have a potential contribution with regard to 3d plotting to
be able to use mesh (x,y,z) instead of gsplot (z).
octave:17> z
z =
1 1 1 1 1
10 10 10 10 10
5 5 5 5 5
gsplot (z) gives exactly what I'd like with respect to visually comparing
the matrix z (in 2-dimensions) with the 3d plot. When using MATLAB-style 3d
commands, and again looking at z above, I have to use mesh (x,y,z') to get
the equivalent of gsplot (z). They are not exactly the same as the colors
are reversed and in the gsplot x and y start at 0. The meshgrid was created
using x=[1,2,3] and y = [1,2,3,4,5]. Nothing else seemed to work for me to
get the equivalent of gsplot(z).
Henry
on 1/9/04 2:00 PM, John W. Eaton at address@hidden wrote:
> On 9-Jan-2004, Henry F. Mollet <address@hidden> wrote:
>
> | 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
>
> This has come up many times, and the answer is that Octave does not
> support "linetype" as an option to gplot and probably never will. The
> problem is that since Octave has to parse the command, it creates a
> maintenance problem when gnuplot changes (the linetype option was not
> always a part of gnuplot, for example).
>
> I expect that gplot and gsplot and all of that other gnuplot-specific
> interface will eventually be removed from Octave. So you should
> probably be using the higher-level plot functions if possible. If you
> find that you can't do everything you want with those, then please
> help to improve Octave so that there will be no need for gplot,
> gsplot, etc. Sorry that this is not documented in an obvious place
> (yet).
>
> jwe
-------------------------------------------------------------
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
-------------------------------------------------------------
- color choice in plotting, Christoph Dalitz, 2004/01/09
- Re: color choice in plotting, Ada Cheng, 2004/01/09
- Re: color choice in plotting, Henry F. Mollet, 2004/01/09
- Re: color choice in plotting, Dmitri A. Sergatskov, 2004/01/09
- Re: color choice in plotting, Henry F. Mollet, 2004/01/09
- Re: color choice in plotting, John W. Eaton, 2004/01/09
- Re: color choice in plotting,
Henry F. Mollet <=
- Re: color choice in plotting, Christoph Dalitz, 2004/01/12
- Re: color choice in plotting, John W. Eaton, 2004/01/12
Re: color choice in plotting, Henry F. Mollet, 2004/01/09