diff scripts/plot/semilogxerr.m @ 17082:cb8543396024

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".
author Rik <rik@octave.org>
date Thu, 25 Jul 2013 11:32:23 -0700
parents abf6a6147f1a
children eaab03308c0b
line wrap: on
line diff
--- 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);