Mercurial > hg > octave-nkf
changeset 20531:fc3056b9fac0
write figure to specified output directory
* plotimages.m: Write "extended" figure to specified output directory.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 10 Jul 2015 17:22:50 -0400 |
parents | d8992a16643c |
children | 03c88436ad8c |
files | doc/interpreter/plotimages.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/plotimages.m +++ b/doc/interpreter/plotimages.m @@ -101,11 +101,11 @@ ylabel ("erf (x)"); title ("erf (x) with text annotation"); if (strcmp (typ, "pdf")) - print ([nm ".pdf"], "-dpdflatexstandalone"); + print (outfile, "-dpdflatexstandalone"); system (["pdflatex " nm]); delete ([nm ".aux"], [nm "-inc.pdf"], [nm ".log"], [nm ".tex"]); else - print ([nm "." typ], d_typ); + print (outfile, d_typ); endif else error ("unrecognized plot requested");