Commit 449231a2 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Added the possibility to write graph_format=none, in which case the graphs are...

Added the possibility to write graph_format=none, in which case the graphs are displayed (provided nograph and nodisplay options are not used) but not saved.
parent ca8610e7
......@@ -3026,8 +3026,8 @@ default).
@anchor{nograph} Do not create graphs (which implies that they are not
saved to the disk nor displayed). If this option is not used, graphs
will be saved to disk (to the format specified by @code{graph_format}
option) and displayed to screen (unless @code{nodisplay} option is
used).
option, except if @code{graph_format=none}) and displayed to screen
(unless @code{nodisplay} option is used).
@item nodisplay
@anchor{nodisplay} Do not display the graphs, but still save them to disk
......@@ -3037,8 +3037,9 @@ used).
@itemx graph_format = ( @var{FORMAT}, @var{FORMAT}@dots{} )
@anchor{graph_format}
Specify the file format(s) for graphs saved to disk. Possible values are
@code{eps} (the default), @code{pdf} and @code{fig} (under Octave,
only @code{eps} is available).
@code{eps} (the default), @code{pdf}, @code{fig} and @code{none} (under Octave,
only @code{eps} and @code{none} are available). If the file format is set equal to
@code{none}, the graphs are displayed but not saved to the disk.
@item noprint
Don't print anything. Useful for loops.
......
......@@ -2261,6 +2261,8 @@ allowed_graph_formats : EPS
{ driver.add_graph_format("fig"); }
| PDF
{ driver.add_graph_format("pdf"); }
| NONE
{ driver.add_graph_format("pdf"); }
;
list_allowed_graph_formats : allowed_graph_formats
| list_allowed_graph_formats COMMA allowed_graph_formats
......@@ -2705,6 +2707,7 @@ symbol : NAME
| EPS
| PDF
| FIG
| NONE
| DR
;
%%
......
......@@ -226,6 +226,7 @@ string eofbuff;
<DYNARE_STATEMENT>eps {yylval->string_val = new string(yytext); return token::EPS;}
<DYNARE_STATEMENT>pdf {yylval->string_val = new string(yytext); return token::PDF;}
<DYNARE_STATEMENT>fig {yylval->string_val = new string(yytext); return token::FIG;}
<DYNARE_STATEMENT>none {yylval->string_val = new string(yytext); return token::NONE;}
<DYNARE_STATEMENT>print {return token::PRINT;}
<DYNARE_STATEMENT>noprint {return token::NOPRINT;}
<DYNARE_STATEMENT>conf_sig {return token::CONF_SIG;}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment