Mercurial > hg > octave-lyh
diff scripts/plot/print.m @ 5368:720dc7f7a75e
[project @ 2005-05-23 20:41:22 by jwe]
author | jwe |
---|---|
date | Mon, 23 May 2005 20:41:22 +0000 |
parents | 7e1347e6712e |
children | ec8c33dcd1bf |
line wrap: on
line diff
--- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -222,7 +222,8 @@ options = strcat (options, " ", fontsize); endif - __gnuplot_raw__ (sprintf ("set terminal postscript %s push;\n", options)); + __gnuplot_raw__ ("set terminal push;\n"); + __gnuplot_raw__ (sprintf ("set terminal postscript %s;\n", options)); elseif (strcmp (dev, "aifm") || strcmp (dev, "corel")) @@ -239,7 +240,8 @@ options = strcat (options, " ", fontsize); endif - __gnuplot_raw__ (sprintf ("set terminal %s %s push;\n", dev, options)); + __gnuplot_raw__ ("set terminal push;\n"); + __gnuplot_raw__ (sprintf ("set terminal %s %s;\n", dev, options)); elseif (strcmp (dev, "fig")) ## XFig @@ -252,7 +254,8 @@ if (! isempty (fontsize)) options = strcat (options, " fontsize ", fontsize); endif - __gnuplot_raw__ (sprintf ("set terminal fig %s push;\n", options)); + __gnuplot_raw__ ("set terminal push;\n"); + __gnuplot_raw__ (sprintf ("set terminal fig %s;\n", options)); elseif (strcmp (dev, "png") || strcmp (dev, "pbm")) ## Portable network graphics, PBMplus @@ -270,11 +273,13 @@ ##eval (sprintf ("__gnuplot_set__ term %s mono medium", dev)); ##endif - __gnuplot_raw__ ("set terminal png large push;\n") + __gnuplot_raw__ ("set terminal push;\n"); + __gnuplot_raw__ ("set terminal png large;\n") elseif (strcmp (dev, "dxf") || strcmp (dev, "mf") || strcmp (dev, "hpgl")) ## AutoCad DXF, METAFONT, HPGL - __gnuplot_raw__ (sprintf ("set terminal %s push;\n", dev)); + __gnuplot_raw__ ("set terminal push;\n"); + __gnuplot_raw__ (sprintf ("set terminal %s;\n", dev)); endif ## Gnuplot expects " around output file name