changeset 20356: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	Thu Jul 09 21:38:57 2015 -0700
+++ b/doc/interpreter/plotimages.m	Fri Jul 10 17:22:50 2015 -0400
@@ -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");