# HG changeset patch # User David Bateman # Date 1220381548 14400 # Node ID 082fa78595740eb7f3b7ab418ff8221d38750597 # Parent 4665276ff7f618f116d95c995fd27c30e45da7c7 Additional do not call set with empty arguments fixes diff -r 4665276ff7f6 -r 082fa7859574 scripts/plot/__area__.m --- a/scripts/plot/__area__.m Tue Sep 02 14:50:08 2008 -0400 +++ b/scripts/plot/__area__.m Tue Sep 02 14:52:28 2008 -0400 @@ -63,7 +63,9 @@ addproperty ("areagroup", hg, "data"); set (retval, "areagroup", retval); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor endfunction diff -r 4665276ff7f6 -r 082fa7859574 scripts/plot/__bars__.m --- a/scripts/plot/__bars__.m Tue Sep 02 14:50:08 2008 -0400 +++ b/scripts/plot/__bars__.m Tue Sep 02 14:52:28 2008 -0400 @@ -113,7 +113,9 @@ addproperty ("bargroup", hg, "data"); set (tmp, "bargroup", tmp); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif if (i == 1) set (h_baseline, "parent", get (hg, "parent")); endif diff -r 4665276ff7f6 -r 082fa7859574 scripts/plot/__quiver__.m --- a/scripts/plot/__quiver__.m Tue Sep 02 14:50:08 2008 -0400 +++ b/scripts/plot/__quiver__.m Tue Sep 02 14:52:28 2008 -0400 @@ -295,7 +295,9 @@ addlistener (hg, "markerfacecolor", @update_props); addlistener (hg, "markersize", @update_props); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif unwind_protect_cleanup set (h, "nextplot", hstate); end_unwind_protect diff -r 4665276ff7f6 -r 082fa7859574 scripts/plot/__stem__.m --- a/scripts/plot/__stem__.m Tue Sep 02 14:50:08 2008 -0400 +++ b/scripts/plot/__stem__.m Tue Sep 02 14:52:28 2008 -0400 @@ -143,7 +143,9 @@ addlistener (hg, "ydata", @update_data); addlistener (hg, "zdata", @update_data); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif if (i == 1 && !isempty(h_baseline)) set (h_baseline, "parent", get (hg, "parent")); endif diff -r 4665276ff7f6 -r 082fa7859574 scripts/plot/stairs.m --- a/scripts/plot/stairs.m Tue Sep 02 14:50:08 2008 -0400 +++ b/scripts/plot/stairs.m Tue Sep 02 14:52:28 2008 -0400 @@ -175,7 +175,9 @@ addlistener (hg, "markeredgecolor", @update_props); addlistener (hg, "markersize", @update_props); - set (hg, args{:}); + if (! isempty (args)) + set (hg, args{:}); + endif endfor unwind_protect_cleanup set (gca (), "nextplot", hold_state);