# HG changeset patch # User Michael Goffioul # Date 1220195660 14400 # Node ID bac1061a36bc15de44801eec2724740680c4bd8e # Parent a028a5960e1896b2ccc84507e3397829666ce0df Do not call "set" with empty arguments diff -r a028a5960e18 -r bac1061a36bc scripts/ChangeLog --- a/scripts/ChangeLog Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/ChangeLog Sun Aug 31 11:14:20 2008 -0400 @@ -1,3 +1,9 @@ +2008-08-31 Michael Goffioul + + * plot/__plt2mm__.m, plot/__plt2mv__.m, plot/__plt2ss__.m, + plot/__plt2sv__.m, plot/__plt2vm__.m, plot/__plt2vs__.m, + plot/__plt2vv__.m: Do not call "set" with empty arguments. + 2008-08-29 David Bateman * plot/__plt2mm__.m, plot/__plt2mv__.m, plot/__plt2ss__.m, diff -r a028a5960e18 -r bac1061a36bc scripts/plot/__plt2mm__.m --- a/scripts/plot/__plt2mm__.m Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/plot/__plt2mm__.m Sun Aug 31 11:14:20 2008 -0400 @@ -65,7 +65,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args {:}); + if (! isempty( args)) + set (hg, args {:}); + endif endfor else error ("__plt2mm__: arguments must be a matrices"); diff -r a028a5960e18 -r bac1061a36bc scripts/plot/__plt2mv__.m --- a/scripts/plot/__plt2mv__.m Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/plot/__plt2mv__.m Sun Aug 31 11:14:20 2008 -0400 @@ -81,7 +81,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor else error ("__plt2mv__: arguments must be a matrices"); diff -r a028a5960e18 -r bac1061a36bc scripts/plot/__plt2ss__.m --- a/scripts/plot/__plt2ss__.m Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/plot/__plt2ss__.m Sun Aug 31 11:14:20 2008 -0400 @@ -62,7 +62,9 @@ "marker", options.marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, properties{:}); + if (! isempty (properties)) + set (hg, properties{:}); + endif else error ("__plt2ss__: arguments must be scalars"); endif diff -r a028a5960e18 -r bac1061a36bc scripts/plot/__plt2sv__.m --- a/scripts/plot/__plt2sv__.m Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/plot/__plt2sv__.m Sun Aug 31 11:14:20 2008 -0400 @@ -61,7 +61,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty(args)) + set (hg, args{:}); + endif endfor else error ("__plt2sv__: first arg must be scalar, second arg must be vector"); diff -r a028a5960e18 -r bac1061a36bc scripts/plot/__plt2vm__.m --- a/scripts/plot/__plt2vm__.m Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/plot/__plt2vm__.m Sun Aug 31 11:14:20 2008 -0400 @@ -81,7 +81,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor else error ("__plt2vm__: arguments must be a matrices"); diff -r a028a5960e18 -r bac1061a36bc scripts/plot/__plt2vs__.m --- a/scripts/plot/__plt2vs__.m Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/plot/__plt2vs__.m Sun Aug 31 11:14:20 2008 -0400 @@ -61,7 +61,9 @@ "marker", options(i).marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor else error ("__plt2vs__: first arg must be vector, second arg must be scalar"); diff -r a028a5960e18 -r bac1061a36bc scripts/plot/__plt2vv__.m --- a/scripts/plot/__plt2vv__.m Fri Aug 29 15:48:44 2008 -0400 +++ b/scripts/plot/__plt2vv__.m Sun Aug 31 11:14:20 2008 -0400 @@ -76,7 +76,9 @@ "marker", options.marker, "parent", hg); __add_line_series__ (h, hg); - set (hg, properties{:}); + if (! isempty (properties)) + set (hg, properties{:}); + endif else error ("__plt2vv__: vector lengths must match"); endif