changeset 9793:7161e9b41cf6

__go_draw_axes__.m: No 'with linestyle' when linestyle == 'none'.
author Ben Abbott <bpabbott@mac.com>
date Tue, 10 Nov 2009 13:25:57 -0500
parents 384616240a8f
children 0d4613a736e9
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Nov 10 10:58:39 2009 +0100
+++ b/scripts/ChangeLog	Tue Nov 10 13:25:57 2009 -0500
@@ -1,3 +1,7 @@
+2009-11-10  Ben Abbott <bpabbott@mac.com>
+
+	* plot/__go_draw_axes__.m: No 'with linestyle' when linestyle == 'none'.
+
 2009-11-09  Jaroslav Hajek  <highegg@gmail.com>
 
 	* general/arrayfun.m: Fix nargout=0 case.
--- a/scripts/plot/__go_draw_axes__.m	Tue Nov 10 10:58:39 2009 +0100
+++ b/scripts/plot/__go_draw_axes__.m	Tue Nov 10 13:25:57 2009 -0500
@@ -525,8 +525,12 @@
 	  style = do_linestyle_command (obj, obj.color, data_idx, mono, 
 					plot_stream, errbars);
 
-	  withclause{data_idx} = sprintf ("with %s linestyle %d",
-					  style{1}, data_idx);
+	  if (isempty (style{1}))
+	    withclause{data_idx} = '';
+	  else
+	    withclause{data_idx} = sprintf ("with %s linestyle %d",
+					    style{1}, data_idx);
+	  endif
 
 	  if (length (style) > 1)
 	    data_idx++;