help-octave
[Top][All Lists]
Advanced

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

Re: tics number and tics location


From: Henry F. Mollet
Subject: Re: tics number and tics location
Date: Sun, 18 Nov 2007 16:09:10 -0800
User-agent: Microsoft-Entourage/11.1.0.040913

on 11/18/07 11:18 AM, Henry F. Mollet at address@hidden wrote:

> on 11/16/07 7:48 PM, Evan at address@hidden wrote:
> 
>> On Nov 16, 2007 3:55 AM, Henry F. Mollet <address@hidden> wrote:
>>> 
>>> on 11/15/07 7:34 AM, Evan at address@hidden wrote:
>>>> If I don't want very tick labeled by a number, which property should I
>>>> adjust
>>> 
>>> 
>>> I doubt that there's an easy way to do this. You could delete all the
>>> default x-tick labels and then use your own with the text command.
>> 
>> In gnuplot this is called minor tics and is controlled by   set m{x|y}tics
>> has it been included in present octave?
> 
> I'm *guessing* that you have two options:
> 
> 1. Use an older version of Octave (e.g. 2.1.73 or earlier) and send raw
> gnuplot commands from Octave to Gnuplot. Such raw gnuplot commands are no
> longer available in the current version of Octave und upcoming version 3
> release.
> 
> 2. Use a different graphics program that allows you to "set" minor tics. It
> could be J-handles in combination with Octave 2.9.17 or later if minor tics
> have been or will be implemented.
> Henry


I have checked an old MATLAB manual and found the following example. It does
not work for me but here it is:
% Set x-ticks mark separately, then label them

1. Commands
octave-2.9.17:3> axis ([-4 53 675 765]); %never mind y-limits here
octave-2.9.17:4> set (aH, 'xtick', 0:6:48);
octave-2.9.17:4> set (aH, 'xticklabel', [' 0';'  ';'12';'  ';'24';'
';'36';'  ';'48']);

2. Commands with errors
octave-2.9.17:4> set (aH, 'Xtick', 0:6:48);
error: `aH' undefined near line 4 column 6
error: evaluating argument list element number 1
octave-2.9.17:4> set (aH, 'xticklabel', [' 0';'  ';'12';'  ';'24';'
';'36';'  ';'48']);
error: `aH' undefined near line 4 column 6
error: evaluating 
argument list element number 1
octave-2.9.17:4> 
Henry

OK, finally I got it. Henry
octave-2.9.17:1> axis ([-4 53 675 765]);
octave-2.9.17:2> aH= gca;
octave-2.9.17:3> set (aH, 'xtick', 0:6:48);
octave-2.9.17:4> set (aH, 'xticklabel', [' 0';'  ';'12';'  ';'24';'
';'36';'  ';'48']);
octave-2.9.17:5> 





reply via email to

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