# HG changeset patch # User jwe # Date 1116880882 0 # Node ID 720dc7f7a75e8603dcaef5ecd0798037a2c9c8d3 # Parent 7e1347e6712ea4add499e89be441eaee4d6bfb4f [project @ 2005-05-23 20:41:22 by jwe] diff --git a/scripts/plot/print.m b/scripts/plot/print.m --- 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