octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with minor grid


From: Michael Godfrey
Subject: Re: Help with minor grid
Date: Wed, 26 Aug 2015 13:58:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0



On 08/26/2015 01:47 PM, 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.

What happens for something like

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

? In this case, I see no way for the minor ticks to be evenly distributed and to match up with all the major tick marks.

jwe

Also, there are the missing minor grid lines as shown in the bug report.

Michael




reply via email to

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