changeset 14316:0216b5d6c80c stable

semilogx.m: Correct incorrectly coded %!test. * semilogx.m: Correct incorrectly coded %!test.
author Rik <octave@nomad.inbox5.com>
date Thu, 02 Feb 2012 10:08:35 -0800
parents 99428221b4e1
children 7dee2bb231c1
files scripts/plot/semilogx.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/semilogx.m	Thu Feb 02 09:37:33 2012 -0800
+++ b/scripts/plot/semilogx.m	Thu Feb 02 10:08:35 2012 -0800
@@ -112,11 +112,11 @@
 %!test
 %! hf = figure ("visible", "off");
 %! unwind_protect
-%!   a = logspace (-5, 1, 10);
-%!   b =-logspace (-5, 1, 10);
+%!   a =-logspace (-5, 1, 10);
+%!   b = logspace (-5, 1, 10);
 %!   semilogx (a, b);
 %!   axis tight;
-%!   assert (all (get (gca, "ytick") < 0));
+%!   assert (all (get (gca, "xtick") < 0));
 %! unwind_protect_cleanup
 %!   close (hf);
 %! end_unwind_protect