help-octave
[Top][All Lists]
Advanced

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

Re: Plotting with Octave 3.0


From: Jean-Marc Valin
Subject: Re: Plotting with Octave 3.0
Date: Thu, 25 Sep 2008 15:54:46 -0400
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

> Plotting in 3.0 is more compatible with matlab, which means once you
> make a plot, you can use get() / set() functions to retrieve or change
> properties of individual graphic objects in the plot. For example, to
> set ticks manually, you edit xtick property of axes object, like this:
>
> plot(1:5)
> set(gca(),'xtick',[1 3 5]) % have ticks at odd numbers only
>   

But where is that documented? I looked at the manual and there's nothing
about get() and set(). The help command isn't too useful either. Also,
will that help me put the legend at the bottom outside (south outside)
or have errorbars with different colours?

    Jean-Marc

> In this code, gca() returns reference to current axes. See section
> about 'advanced plotting' in the manual for list of graphic objects
> and their properties (or use get(gca()) to retrieve list of all
> properties of the object passed as parameter, in this case current
> axes). If you really prefer old gnuplot commands, you could just save
> your data in text file and then run gnuplot script outside of
> Octave...
>   
...or get Octave 2.1, which does everything I need without the
shortcomings (and plain bugs) in Octave 3.0. The only hassle was getting
an older version of gnuplot and octave-forge to do with it.

    Jean-Marc




reply via email to

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