help-octave
[Top][All Lists]
Advanced

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

Re: Using data values as custom tic lebels


From: Ben Abbott
Subject: Re: Using data values as custom tic lebels
Date: Fri, 13 Apr 2012 08:29:26 -0400

On Apr 13, 2012, at 8:06 AM, address@hidden wrote:

> Hi,
> 
> Let's say I have an x-y of plot like this:
> 
> x=[1.3, 2, 7.5];
> y=[0, 6.1, 3.0];
> plot (x, y);
> 
> and I would to have the data values of x and y as tic labels on the
> respective axes. I can think of turning the axis labels off and using
> the text() command but that would be cumbersome. Is there any better way
> to do that?
> 
> Regards,
> ST

Does ...

        set (gca (), "xtick", x, "ytick", y)

... do what you want?

Ben


reply via email to

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