changeset 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 86067af51d5e
children ceca3e65a8fe
files scripts/plot/loglogerr.m scripts/plot/semilogxerr.m scripts/plot/semilogyerr.m
diffstat 3 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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);
--- 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);