help-octave
[Top][All Lists]
Advanced

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

Re: Text labels on plot axis?


From: Matthias Brennwald
Subject: Re: Text labels on plot axis?
Date: Sat, 17 Mar 2007 18:39:03 +0100

Thanks!


Hi,

in gnuplot, you would use
  set xtics ("apples" 1, "pears" 2, "tomato" 3)

with gnuplot_set you can do the same in octave:
  __gnuplot_set__('xtics ("apples" 1, "pears" 2, "tomatoes" 3)')
  plot([1, 2, 3], [10 20 5]);


regards

Thorsten Meyer

...and...

Hi!

Try the functions tics from octave-forge:

tics(axis,[pos1,pos2,...],['lab1';'lab2';...])
Explicitly set the tic positions and labels for the given axis.
...
tics is the user-defined function from the file
/usr/share/octave/2.9.9/site/m/octave-forge/plot/tics.m

Pete


-------
Matthias Brennwald
Lägernstrasse 6
CH 8037 Zürich
+41 (0)44 364 17 03
address@hidden





reply via email to

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