changeset 18424:cb377af34c00

qqplot.m: Plot points as well as connecting line. * qqplot.m: Plot points as well as connecting line.
author Rik <rik@octave.org>
date Sun, 02 Feb 2014 22:21:45 -0800
parents 1597281144e4
children 07ca8b9f8cab
files scripts/statistics/base/qqplot.m
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/base/qqplot.m	Sun Feb 02 22:03:07 2014 -0800
+++ b/scripts/statistics/base/qqplot.m	Sun Feb 02 22:21:45 2014 -0800
@@ -62,7 +62,7 @@
     print_usage ();
   endif
 
-  if (!(isnumeric (x) && isvector (x)))
+  if (! (isnumeric (x) && isvector (x)))
     error ("qqplot: X must be a numeric vector");
   endif
 
@@ -97,7 +97,7 @@
   endif
 
   if (nargout == 0)
-    plot (q, s);
+    plot (q, s, "-x");
     q_label = strrep (q_label, '_inv', '\_inv');
     if (q_label(1) == '@')
       q_label = q_label(6:end);  # Strip "@(y) " from anon. function
@@ -111,4 +111,3 @@
 
 endfunction
 
-