comparison 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
comparison
equal deleted inserted replaced
17081:86067af51d5e 17082:cb8543396024
48 oldfig = ifelse (isempty (hax), [], get (0, "currentfigure")); 48 oldfig = ifelse (isempty (hax), [], get (0, "currentfigure"));
49 unwind_protect 49 unwind_protect
50 hax = newplot (hax); 50 hax = newplot (hax);
51 51
52 set (hax, "xscale", "log"); 52 set (hax, "xscale", "log");
53 if (! ishold (hax))
54 set (hax, "xminortick", "on");
55 endif
53 htmp = __errcomm__ ("semilogxerr", hax, varargin{:}); 56 htmp = __errcomm__ ("semilogxerr", hax, varargin{:});
57
54 unwind_protect_cleanup 58 unwind_protect_cleanup
55 if (! isempty (oldfig)) 59 if (! isempty (oldfig))
56 set (0, "currentfigure", oldfig); 60 set (0, "currentfigure", oldfig);
57 endif 61 endif
58 end_unwind_protect 62 end_unwind_protect