[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave 2.9.0 available for ftp
From: |
John W. Eaton |
Subject: |
Re: Octave 2.9.0 available for ftp |
Date: |
Tue, 15 Mar 2005 23:58:49 -0500 |
On 15-Mar-2005, Dmitri A. Sergatskov <address@hidden> wrote:
| print.m is broken:
|
| octave:1> s=rand(10)
| octave:2> plot(s)
| octave:3> print("-depsc2","xxx.ps")
| warning: in fopen near line 55, column 3:
| warning: fopen: default open mode is now binary
|
| gnuplot> set output \"xxx.ps\" ;
| ^
| line 0: invalid character \
For this problem, try the following patch to Octave:
src/ChangeLog:
2005-03-15 John W. Eaton <address@hidden>
* lex.l (<COMMAND_START>{NL}): Reset lexer_flags.doing_rawcommand
state here.
Index: src/lex.l
===================================================================
RCS file: /cvs/octave/src/lex.l,v
retrieving revision 1.219
diff -u -r1.219 lex.l
--- src/lex.l 28 Dec 2004 01:59:05 -0000 1.219
+++ src/lex.l 16 Mar 2005 04:47:00 -0000
@@ -309,6 +309,7 @@
current_input_column = 1;
lexer_flags.quote_is_transpose = false;
lexer_flags.convert_spaces_to_comma = true;
+ lexer_flags.doing_rawcommand = false;
COUNT_TOK_AND_RETURN ('\n');
}
| parse error:
|
| syntax error
|
| >>> ;
| ^
|
| error: could not parse plot command
| parse error:
|
| syntax error
|
| >>> ;
| ^
|
| error: could not parse plot command
| error: called from `print' in file
| `/usr/local/share/octave/2.9.0/site/m/octave-forge/plot/print.m'
For this one, try the following change for print.m:
--- print.m~ 2005-03-15 23:54:19.000000000 -0500
+++ print.m 2005-03-15 23:54:31.000000000 -0500
@@ -311,7 +311,7 @@
endif;
eval (sprintf ("gset output \"%s\";", name));
- replot;
+ replot
unwind_protect_cleanup
@@ -325,7 +325,7 @@
else
eval (sprintf ("gset output \"%s\";", origout));
end
- replot;
+ replot
automatic_replot = _automatic_replot ;
Bonus points if you can figure out how to do the right thing for
"replot;" (I could not).
jwe
- Octave 2.9.0 available for ftp, John W. Eaton, 2005/03/15
- Re: Octave 2.9.0 available for ftp, Dmitri A. Sergatskov, 2005/03/15
- Re: Octave 2.9.0 available for ftp, Dmitri A. Sergatskov, 2005/03/15
- Re: Octave 2.9.0 available for ftp, John W. Eaton, 2005/03/15
- Re: Octave 2.9.0 available for ftp,
John W. Eaton <=
- Re: Octave 2.9.0 available for ftp, Dmitri A. Sergatskov, 2005/03/16
- Re: Octave 2.9.0 available for ftp, John W. Eaton, 2005/03/16
- Re: Octave 2.9.0 available for ftp, Dmitri A. Sergatskov, 2005/03/16
- Re: Octave 2.9.0 available for ftp, John W. Eaton, 2005/03/16
- Re: Octave 2.9.0 available for ftp, Dmitri A. Sergatskov, 2005/03/16
- Re: Octave 2.9.0 available for ftp, John W. Eaton, 2005/03/16
Re: Octave 2.9.0 available for ftp, David Bateman, 2005/03/16
Re: Octave 2.9.0 available for ftp, David Bateman, 2005/03/16