changeset 10156:f481496013a2

Set default line style in __contour__
author David Bateman <dbateman@free.fr>
date Thu, 21 Jan 2010 00:16:41 +0100
parents d0ce5e973937
children cf17f22f1fd4
files scripts/ChangeLog scripts/plot/private/__contour__.m
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Wed Jan 20 17:40:53 2010 -0500
+++ b/scripts/ChangeLog	Thu Jan 21 00:16:41 2010 +0100
@@ -1,3 +1,8 @@
+2010-01-20  David Bateman  <dbateman@free.fr>
+
+	* plot/private/__contour__.m: Set default linestyle if pltopt returns
+	an empty style.
+
 2010-01-20  John W. Eaton  <jwe@octave.org>
 
 	* time/datetick.m: Make form arg optional.
@@ -8,7 +13,6 @@
 	* plot/__go_draw_axes__.m: Correct an error in drawing of patch
 	objects where unrequested markers were drawn.
 
-
 	* plot/__go_draw_figure__.m: Also plot white foreground and
 	background colors.
 	* plot/plotyy.m: Set axes colors to "none".
--- a/scripts/plot/private/__contour__.m	Wed Jan 20 17:40:53 2010 -0500
+++ b/scripts/plot/private/__contour__.m	Thu Jan 21 00:16:41 2010 +0100
@@ -36,6 +36,9 @@
       if (isempty (linespec.color))
 	linespec.color = "auto";
       endif
+      if (isempty (linespec.linestyle))
+	linespec.linestyle = "-";
+      endif
       if (valid)
 	have_line_spec = true;
 	varargin(i) = [];