Mercurial > hg > octave-terminal
changeset 4841:66fb9f8c66c8
[project @ 2004-03-12 23:02:54 by jwe]
author | jwe |
---|---|
date | Fri, 12 Mar 2004 23:03:00 +0000 |
parents | 46684e85fc56 |
children | fafc79eeaebb |
files | scripts/ChangeLog scripts/plot/__pltopt1__.m |
diffstat | 2 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2004-03-12 John W. Eaton <jwe@bevo.che.wisc.edu> + + * 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 <stefan@sun.ac.za> * image/imshow.m: Accept "truesize" argument.
--- a/scripts/plot/__pltopt1__.m +++ b/scripts/plot/__pltopt1__.m @@ -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