[Top][All Lists]

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

Re: Help with minor grid

From: Ben Abbott
Subject: Re: Help with minor grid
Date: Wed, 26 Aug 2015 12:35:43 -0400

> On Aug 26, 2015, at 11:55 AM, Rik <address@hidden> wrote:
> On 08/26/2015 05:47 AM, John W. Eaton wrote:
>> On 08/25/2015 07:32 PM, Michael Godfrey wrote:
>>> Atached is result of:
>>> plot (1:10)
>>> set (gca, 'xtick', [0 1 5 6 9 10])
>>> grid minor
>> Hmm, so even though you specify a tick mark at 0, it's not displayed
>> because of the data range being 1:10?  Is it always the case that tick
>> marks outside the data range (or axes limits, I guess, which might be
>> computed from the data range) are ignored?  That seems like one problem
>> to solve and the other is to properly handle the minor ticks when the
>> major ticks are not evenly spaced.
> There seems to be several problems which need to be disentangled.  When the
> command 'set (gca, 'xtick', ...)' is executed I notice that I do not hit a
> breakpoint in calc_ticks_and_lims in graphics.cc.  This means only the
> 'xtick' property itself is being updated, but there is no listener that is
> also asking for the limits to be updated.

If I understand correctly, this is also how Matlab works. Meaning the axis 
limits are not dependent upon {x,y,z}tick. The only ticks that are displayed 
must be within the range of the axes limits.


reply via email to

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