help-octave
[Top][All Lists]
Advanced

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

Re: Identify auto tick locations


From: Henry F. Mollet
Subject: Re: Identify auto tick locations
Date: Tue, 30 Oct 2007 16:19:49 -0700
User-agent: Microsoft-Entourage/11.1.0.040913



on 10/30/07 2:32 PM, Peter A. Gustafson at
address@hidden wrote:

> On Tuesday 30 October 2007 17:15:13 Troy Henderson wrote:
>> Is it possible to get Octave to return its automatic placement of tick
>> locations (both x and y) for a 2D graph without having to actually
>> plot something by simply providing an "axis range".  For example,
>> executing the command
>> 
>> axis([0 1 -4e4 4e4])
>> 
>> pops up a plot window where the x ticks (and labels) are located at
>> 0,0.2,0.4,0.6,0.8,1 and the y ticks (and labels) are located at
>> -40000,-30000,-20000,-10000,0,10000,20000,30000,40000
>> 
>> Is there a command in Octave to retrieve these two lists without
>> having to open a plot window?
>> 
>> Thanks,
>> 
>> Troy Henderson
>> _______________________________________________
 
> No, tic placement is managed by the plotting backend (gnuplot) unless you
> specify the tic positions on your own.  The latter is most easily done with
> the tics() function in octave-forge plot package, thought it can be done with
> the set() function.
> 
> Pete

According to an example in an old MATLAB manual the following should work
but in Octave it produces [](0x0) rather than the default values used.
octave-2.9.15:21> xticks=get (gca, 'xtick')
xticks = [](0x0)
Henry




reply via email to

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