# HG changeset patch # User Ben Abbott # Date 1271110078 14400 # Node ID 153e6226a669167daab31d94cbd617d32decfe89 # Parent 62ebba45054e27eb75e967371ccd4db20b65845d loglog.m: Minor ticks on by default for loglog plots. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ -2010-04-12 Ben Abbott - +2010-04-12 Ben Abbott + + * plot/loglog.m: Minor ticks on by default for loglog plots. * plot/__plt_get_axis_arg__.m, plot/newplot.m: Respect the nextplot property value of 'new' for axes and 'replacechildren' for axes and figures. diff --git a/scripts/plot/loglog.m b/scripts/plot/loglog.m --- a/scripts/plot/loglog.m +++ b/scripts/plot/loglog.m @@ -37,6 +37,9 @@ newplot (); set (h, "xscale", "log", "yscale", "log"); + if (any( strcmp (get (gca, "nextplot"), {"new", "replace"}))) + set (h, "xminortick", "on", "yminortick", "on"); + endif tmp = __plt__ ("loglog", h, varargin{:}); @@ -48,3 +51,4 @@ end_unwind_protect endfunction +