changeset 11095:d4619eb6ef8e

__go_draw_axes__.m: Enable linetypes for gnuplot.
author Ben Abbott <bpabbott@mac.com>
date Sat, 09 Oct 2010 16:25:40 -0400
parents add5beb3b845
children 04c3aacbbc46
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 8 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-09  Ben Abbott <bpabbott@mac.com>
+
+	* plot/__go_draw_axes__.m: Enable linetypes for gnuplot.
+
 2010-10-09  John W. Eaton  <jwe@octave.org>
 
 	* statistics/distributions/geornd.m,
--- a/scripts/plot/__go_draw_axes__.m
+++ b/scripts/plot/__go_draw_axes__.m
@@ -1642,18 +1642,9 @@
         lt = "";
     endswitch
 
-    ## FIXME -- linetype is currently broken, since it disables the
-    ## gnuplot default dashed and solid linestyles with the only
-    ## benefit of being able to specify '--' and get a single sized
-    ## dashed line of identical dash pattern for all called this way.
-    ## All dash patterns are a subset of "with lines" and none of the
-    ## lt specifications will correctly propagate into the x11 terminal
-    ## or the print command.   Therefore, it is currently disabled in
-    ## order to allow print (..., "-dashed") etc. to work correctly.
-
-    ##    if (! isempty (lt))
-    ##      fprintf (plot_stream, " linetype %s", lt);
-    ##    endif
+    if (! isempty (lt))
+      fprintf (plot_stream, " linetype %s", lt);
+    endif
 
   else
     lt = "";
@@ -1680,7 +1671,7 @@
     else
       style {sidx} = "lines";
     endif
-    
+
     facesame = true;
     if (! isequal (pt, pt2) && isfield (obj, "markerfacecolor") 
         && !strncmp (obj.markerfacecolor, "none", 4))