# HG changeset patch # User Rik # Date 1374777143 25200 # Node ID cb8543396024485d5b9af2a8126360733d0768dd # Parent 86067af51d5eaf6da1e304bf6e68a701f6342947 Set minorticks for error bar plots with logarithmic axes. * scripts/plot/loglogerr.m, scripts/plot/semilogxerr.m, scripts/plot/semilogyerr.m: Set axis minortick value to "on". diff -r 86067af51d5e -r cb8543396024 scripts/plot/loglogerr.m --- a/scripts/plot/loglogerr.m Thu Jul 25 11:24:03 2013 -0700 +++ b/scripts/plot/loglogerr.m Thu Jul 25 11:32:23 2013 -0700 @@ -50,7 +50,11 @@ hax = newplot (hax); set (hax, "xscale", "log", "yscale", "log"); + if (! ishold (hax)) + set (hax, "xminortick", "on", "yminortick", "on"); + endif htmp = __errcomm__ ("loglogerr", hax, varargin{:}); + unwind_protect_cleanup if (! isempty (oldfig)) set (0, "currentfigure", oldfig); diff -r 86067af51d5e -r cb8543396024 scripts/plot/semilogxerr.m --- a/scripts/plot/semilogxerr.m Thu Jul 25 11:24:03 2013 -0700 +++ b/scripts/plot/semilogxerr.m Thu Jul 25 11:32:23 2013 -0700 @@ -50,7 +50,11 @@ hax = newplot (hax); set (hax, "xscale", "log"); + if (! ishold (hax)) + set (hax, "xminortick", "on"); + endif htmp = __errcomm__ ("semilogxerr", hax, varargin{:}); + unwind_protect_cleanup if (! isempty (oldfig)) set (0, "currentfigure", oldfig); diff -r 86067af51d5e -r cb8543396024 scripts/plot/semilogyerr.m --- a/scripts/plot/semilogyerr.m Thu Jul 25 11:24:03 2013 -0700 +++ b/scripts/plot/semilogyerr.m Thu Jul 25 11:32:23 2013 -0700 @@ -50,7 +50,11 @@ hax = newplot (hax); set (hax, "yscale", "log"); + if (! ishold (hax)) + set (hax, "yminortick", "on"); + endif htmp = __errcomm__ ("semilogyerr", hax, varargin{:}); + unwind_protect_cleanup if (! isempty (oldfig)) set (0, "currentfigure", oldfig);