diff scripts/plot/semilogx.m @ 10647:5c6b73a844e4

Plot minor ticks for semilog plots
author Rik <octave@nomad.inbox5.com>
date Thu, 20 May 2010 11:49:42 -0700 (2010-05-20)
parents 5389a52df87b
children a8ce6bdecce5
line wrap: on
line diff
--- a/scripts/plot/semilogx.m
+++ b/scripts/plot/semilogx.m
@@ -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{:});