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: Thu, 15 Nov 2007 11:55:47 -0800
User-agent: Microsoft-Entourage/11.1.0.040913

on 11/15/07 7:34 AM, Evan at address@hidden wrote:

> On Nov 15, 2007 2:10 AM, Henry F. Mollet <address@hidden> wrote:
>> on 11/14/07 5:09 AM, Evan at address@hidden wrote:
>> 
>>> Can I specify number of tics and their locations when ploting in octave?
>>> 
>>> Thanks in advance.
>>> _______________________________________________
>> octave-2.9.17:1> get (gca)
>> ans =
>> {
>>  CUT
>>   xtick = [](0x0)
>>   ytick = [](0x0)
>>   ztick = [](0x0)
>>  CUT
>> 
>> octave-2.9.17:2> set (gca, 'xtick', [0.0 0.5 1.0])
>> octave-2.9.17:3> get (gca)
>> CUT
>> xtick =
>> 
>>      0.00000   0.50000   1.00000
>> 
>>   ytick = [](0x0)
>>   ztick = [](0x0)
>> CUT
>> 
>> On my Mac the first get (gca) command will open an AquaTerm window with
>> xaxis ticks [0 0.2 0.4 0.6 0.8 1] and same yaxis ticks and then the set
>> command will change the x-axis ticks to [0.0, 0.5, 1.0] . Otherwise blank
>> AquaTerm window without any plot.
>> Henry
>> 
>> 
> 
> Thanks
> 
> 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. You'd
have to find the coordinates so that they will be placed where you want
them.
Henry 

15.1.3 Plot Annotations
-----------------------

You can add titles, axis labels, legends, and arbitrary text to an
existing plot.  For example,

     x = -10:0.1:10;
     plot (x, sin (x));
     title ("sin(x) for x = -10:0.1:10");
     xlabel ("x");
     ylabel ("sin (x)");
     text (pi, 0.7, "arbitrary text");
     legend ("sin (x)");






reply via email to

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