Mercurial > octave
changeset 10647:5c6b73a844e4
Plot minor ticks for semilog plots
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Thu, 20 May 2010 11:49:42 -0700 |
parents | 6c50b56824aa |
children | bc4eb29e0cb4 |
files | scripts/ChangeLog scripts/plot/semilogx.m scripts/plot/semilogy.m |
diffstat | 3 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Thu May 20 12:19:45 2010 -0400 +++ b/scripts/ChangeLog Thu May 20 11:49:42 2010 -0700 @@ -1,3 +1,7 @@ +2010-05-16 Rik <octave@nomad.inbox5.com> + + * plot/semilogx.m, plot/semilogy.m: Plot minor ticks for semilog plots. + 2010-05-16 Rik <octave@nomad.inbox5.com> * audio/loadaudio.m, audio/playaudio.m, audio/saveaudio.m,
--- a/scripts/plot/semilogx.m Thu May 20 12:19:45 2010 -0400 +++ b/scripts/plot/semilogx.m Thu May 20 11:49:42 2010 -0700 @@ -37,6 +37,9 @@ newplot (); set (h, "xscale", "log"); + if (any( strcmp (get (gca, "nextplot"), {"new", "replace"}))) + set (h, "xminortick", "on"); + endif tmp = __plt__ ("semilogx", h, varargin{:});
--- a/scripts/plot/semilogy.m Thu May 20 12:19:45 2010 -0400 +++ b/scripts/plot/semilogy.m Thu May 20 11:49:42 2010 -0700 @@ -37,6 +37,9 @@ newplot (); set (h, "yscale", "log"); + if (any( strcmp (get (gca, "nextplot"), {"new", "replace"}))) + set (h, "yminortick", "on"); + endif tmp = __plt__ ("semilogy", h, varargin{:});