changeset 26665:f9dbc287f908

axis.m: Enlarge ticks in %!demo #3 for clarity. * axis.m: Set the DefaultAxesTickLength for 2-D to be .028, rather than .01. Restore at end of %!demo block.
author Rik <rik@octave.org>
date Sat, 02 Feb 2019 11:33:30 -0800
parents a7dfb00d5bf5
children 5c46c13b43ad
files scripts/plot/appearance/axis.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/appearance/axis.m	Fri Feb 01 22:16:15 2019 -0800
+++ b/scripts/plot/appearance/axis.m	Sat Feb 02 11:33:30 2019 -0800
@@ -487,6 +487,8 @@
 
 %!demo
 %! clf;
+%! def_ticklen = get (0, "DefaultAxesTickLength");
+%! set (0, "DefaultAxesTickLength", [.028, .025]);
 %! t = 0:0.01:2*pi;
 %! x = sin (t);
 %!
@@ -534,6 +536,8 @@
 %!  plot (t, x);
 %!  title ("all ticks and labels");
 %!  axis ("on");
+%!
+%! set (0, "DefaultAxesTickLength", def_ticklen);
 
 %!demo
 %! clf;