changeset 21853:09583900661b

Don't draw connecting line between symbols when not specified (bug #48198). * __gnuplot_draw_axes__.m: Check linetype variable lt and only set style to "lines" if it is not empty.
author Rik <rik@octave.org>
date Fri, 10 Jun 2016 15:27:06 -0700
parents 25493c55d976
children ce0f87bd0509
files scripts/plot/util/private/__gnuplot_draw_axes__.m
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m	Fri Jun 10 15:29:18 2016 -0400
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m	Fri Jun 10 15:27:06 2016 -0700
@@ -934,7 +934,11 @@
            endif
 
            sidx = 1;
-           style = "lines";
+           if (isempty (lt))
+             style = "";
+           else
+             style = "lines";
+           endif
            tmpwith = {};
 
            facesame = true;
@@ -1839,7 +1843,11 @@
 
   sidx = 1;
   if (isempty (errbars))
-    style{sidx} = "lines";
+    if (isempty (lt))
+      style{sidx} = "";
+    else
+      style{sidx} = "lines";
+    endif
     ltidx(sidx) = idx;
 
     facesame = true;