Ben
I just installed the version 3.2 and now is working good.
Many thanks for your help
german
Message: 1
Date: Fri, 12 Jun 2009 05:41:23 -0400
From: Ben Abbott <address@hidden>
Subject: Re: Number of decimals of axis labels
To: German Ocampo <address@hidden>
Cc: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
On Jun 12, 2009, at 5:19 AM, German Ocampo wrote:
>
> On Thu, Jun 11, 2009 at 9:49 PM, Ben Abbott <address@hidden> wrote:
>
>> On Jun 11, 2009, at 4:38 PM, Ben Abbott wrote:
>>
>>> On Jun 11, 2009, at 10:51 AM, German Ocampo wrote:
>>>
>>>> Good afternoon.
>>>>
>>>> I making a plot of two simple vectors, and I need to change the
>>>> number of decimals of the axis labels. Do you have some tip in how
>>>> to do it? Is it possible to change the orientation of the y-axis
>>>> title rotated 90 degrees?
>>>>
>>>> Thanks
>>>>
>>>> German
>>>
>>> Presently there is no method specify the rotation of the tick
>>> labels.
>>> However, you can try using text objects to create the labels you
>>> want.
>>>
>>> To do that you'll need to turn off the ticklabels.
>>>
>>> set (gca, "yticklabel", [])
>>>
>>> Ben
>>
>> I forgot to answer your question regarding the decimals. If you'd
>> like to force 2 decimal places ...
>>
>> set (gca, "xticklabel", cellstr (num2str (get (gca, "xtick")
>> (:), "%.2f")))
>>
>> For ytick's
>>
>> set (gca, "yticklabel", cellstr (num2str (get (gca, "ytick")
>> (:), "%.2f")))
>>
>> Ben
>>
> Ben
>
> Thank you for your help, I using the Octave 3.0.5 in windows and I
> tried using these commands about the decimals and they don't work.
> Is something about configuration?
>
> regards
>
> german
No its not your configuration. Octave 3.0.5 did not support this
behavior. Please upgrade to Octave 3.2.
http://www.gnu.org/software/octave/download.html
Ben