octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with minor grid


From: John W. Eaton
Subject: Re: Help with minor grid
Date: Wed, 26 Aug 2015 08:47:58 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

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





reply via email to

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