octave-maintainers
[Top][All Lists]
Advanced

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

Re: Scale problem using plot()


From: Ben Abbott
Subject: Re: Scale problem using plot()
Date: Mon, 25 Oct 2010 23:48:07 +0800

On Oct 25, 2010, at 11:45 PM, Michael D Godfrey wrote:

> On 10/25/2010 08:34 AM, Ben Abbott wrote:
>> When I do ...
>> 
>> 
>>> > 
>>> set (gca (), "ytick", [56 70 84 98 112 126 140])
>>> 
>> The positions of the tick marks move from 60:10:140 to what is specified. 
>> However, the min and max y-axis values do not change.
>> 
>> To change the min/max x/y/z values for the plot box, the proper approach is 
>> to set the x/y/zlim property values.
>> 
>> Ben
>> 
>> 
> This does not happen for me. Setting:
> set (gca(), "ymin", 56)
> 
> has no effect on the plot.  I will put together a better test case.
> 
> Michael
> 

Try setting "ylim" not "ymin"

        set (gca (), "ylim", [56, 140])

Ben


reply via email to

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