help-octave
[Top][All Lists]
Advanced

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

Re: Force number format in plot tick labels


From: Ben Abbott
Subject: Re: Force number format in plot tick labels
Date: Wed, 27 Jul 2011 08:11:33 -0400

On Jul 27, 2011, at 7:23 AM, nono wrote:

> Hello,
> 
> Is there a way to set the number format used in the tick labels of a plot ?
> I want to print all numbers in real number notation. For instance:
> 
> --
> x=logspace(-2, 2, 5);  
> semilogx(x,sqrt(x)) 
> set(gca(), "xminortick", "on")
> --
> 
> With Octave 3.2.3, it produces a plot with the following labels on the x
> axis: 
> 10^-2, 10^-1, 10^0, 10^1, 10^2
> 
> I would like the labels to be formatted as real number :
> 0.01, 0.1, 1, 10, 100.
> 
> The code
> --
> set(gca(), "xticklabel", {'0.01', '0.1', '1', '10', '100'})
> --
> changes the tick labels but also suppress the minor ticks ...
> 
> Is there a way to achieve this ?
> 
> Thank you for your help.
> Arnaud

This looks like a bug to me.

I've filed a bug report and cc'd you.

        https://savannah.gnu.org/bugs/index.php?33869

Ben



reply via email to

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