[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to avoid title in plot
From: |
Joerg Ungethuem |
Subject: |
Re: how to avoid title in plot |
Date: |
Sun, 14 Nov 1999 14:47:56 +0100 (CET) |
Hi,
as far as I know there are at least 2 possibilities:
1) you can use the gnuplot "set" via octave as "gset". So
octave:>> gset nokey
octave:>> plot(...)
should work.
BTW: in gnuplot the "title" means the title on top of the
plot, which is probably not what you mean.
2) You might mant to set your own labels:
octave:>> gset key
octave:>> x=linspace(-2*pi,2*pi);
octave:>> s=sin(x); c=cos(x);
octave:>> plot(x, s, ";sin curve;", x, c, ";cos curve;")
Whatch out for the ";"!
To set title and labels use the following:
octave:>> title("My plot")
octave:>> xlabel("X-Axis")
octave:>> ylabel("Y-Axis")
octave:>> grid("on")
octave:>> plot(x, s, ";sin curve;", x, c, ";cos curve;")
octave:>>
HTH joergu
----------------------------------------------------------
Dipl.-Ing. Joerg Ungethuem <address@hidden>
----------------------------------------------------------
On Sat, 13 Nov 1999, Eric Aristidi wrote:
> Hello,
>
> I'm quite new to octave and gnuplot. When I use the 'plot' function to
> plot a curve, an annotation 'line 1' is written in the plot. I don't
> want this annotation. In the gnuplot documentation, the option 'notitle'
> remove it, but I don't know how to do it with octave, nothing about this
> in the octave doc.
>
> Thanks for help
>
> Eric
>
> -- Eric Aristidi Dpt Astrophysique - Universite de Nice, Parc Valrose,
> 06108 Nice Cedex 2 mail : address@hidden fax : +33 4 92 07 63 21
> phone : +33 4 92 07 63 45 http://www-astro.unice.fr/PagePerso/aristidi/
>
>
>
> -----------------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
> How to fund new projects: http://www.che.wisc.edu/octave/funding.html
> Subscription information: http://www.che.wisc.edu/octave/archive.html
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------