# HG changeset patch # User jwe # Date 1079132580 0 # Node ID 66fb9f8c66c8222b6885e986b971f0549150b82e # Parent 46684e85fc56863070c583b3b1d0c03a508312aa [project @ 2004-03-12 23:02:54 by jwe] diff -r 46684e85fc56 -r 66fb9f8c66c8 scripts/ChangeLog --- a/scripts/ChangeLog Fri Feb 01 20:59:27 2008 -0500 +++ b/scripts/ChangeLog Fri Mar 12 23:03:00 2004 +0000 @@ -1,3 +1,8 @@ +2004-03-12 John W. Eaton + + * plot/__pltopt1__.m: Always add title clause to plot command with + default of "" (so it is off unless explicitly set by the user). + 2004-03-12 Stefan van der Walt * image/imshow.m: Accept "truesize" argument. diff -r 46684e85fc56 -r 66fb9f8c66c8 scripts/plot/__pltopt1__.m --- a/scripts/plot/__pltopt1__.m Fri Feb 01 20:59:27 2008 -0500 +++ b/scripts/plot/__pltopt1__.m Fri Mar 12 23:03:00 2004 +0000 @@ -39,9 +39,10 @@ set_boxes = 0; set_yerrbars = 0; set_xerrbars = 0; - set_key = 0; set_linestyle = "solid"; + key_title = ""; + more_opts = 1; WITH = "w"; @@ -157,9 +158,7 @@ set_symbol = 1; symbol = "4"; elseif (strcmp (char, ";")) # title mode. - set_key = 1; working = 1; - key_title = ""; while (working) if (max (size (opt)) > 1) char = opt(1); @@ -244,7 +243,6 @@ fmt = strcat (fmt, " 1 ", symbol); endif - if (set_key) - fmt = sprintf ("%s %s \"%s\" ", fmt, TITLE, key_title); - endif + fmt = sprintf ("%s %s \"%s\" ", fmt, TITLE, key_title); + endfunction