[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave 2.1.57 available for ftp
From: |
John W. Eaton |
Subject: |
Re: Octave 2.1.57 available for ftp |
Date: |
Fri, 12 Mar 2004 17:02:30 -0600 |
On 12-Mar-2004, Paul Thomas <address@hidden> wrote:
| There are some slight
| differences that have required code modifications; for example, gnuplot
| defaulting to legends('on') and matlab to legends('off') - this had a
| truly spectacular outcome the first time that I ran my X-ray optics
| programme because each of many tens of components is drawn with several
| separate lines! However, the computational results are identical.
How about the following change? It should turn the legend off by
default for the plot functions, but leaves the gplot interface alone.
jwe
scripts/ChangeLog:
2004-03-12 John W. Eaton <address@hidden>
* plot/__pltopt1__.m: Always add title clause to plot command with
default of "" (so it is off unless explicitly set by the user).
Index: scripts/plot/__pltopt1__.m
===================================================================
RCS file: /usr/local/cvsroot/octave/scripts/plot/__pltopt1__.m,v
retrieving revision 1.12
diff -u -r1.12 __pltopt1__.m
--- scripts/plot/__pltopt1__.m 2 Jan 2003 17:59:17 -0000 1.12
+++ scripts/plot/__pltopt1__.m 12 Mar 2004 22:59:52 -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