octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with minor grid


From: Rik
Subject: Re: Help with minor grid
Date: Mon, 31 Aug 2015 07:54:16 -0700

On 08/27/2015 12:02 AM, address@hidden wrote:
Subject:
Re: Help with minor grid
From:
Ben Abbott <address@hidden>
Date:
08/26/2015 09:35 AM
To:
Rik <address@hidden>
CC:
John Eaton <address@hidden>, address@hidden
List-Post:
<mailto:address@hidden>
Content-Transfer-Encoding:
quoted-printable
Precedence:
list
MIME-Version:
1.0 (Mac OS X Mail 8.2 \(2104\))
References:
<address@hidden> <address@hidden> <address@hidden> <address@hidden>
In-Reply-To:
<address@hidden>
Message-ID:
<address@hidden>
Content-Type:
text/plain; charset=us-ascii
Message:
2

> 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.

Ben

Okay, so Octave is Matlab-compatible in this regard.  The minor grid lines in Octave are still placed in the wrong locations, or are missing, so I filed a report here https://savannah.gnu.org/bugs/?45850.

jwe also asked for the following example to be run

  plot (1:10)
  set (gca, 'xtick', [0, 1, pi, 7.3, 10])
  grid minor

If someone can post the results to bug report #45850 that would help.

--Rik
 

reply via email to

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