Question: How can MYPLOT be included in a procedure?

I am trying to resize some 2D and 3D plots. I find that the following writes a resized plot to the desktop, but it is cumbersome to use in a program when there are multiple plots:

MYPLOT := %:
     plotsetup(jpeg, plotoutput = "/Users/username/Desktop/EXPAND.jpg",

     plotoptions = "height=1000,width=1000");
MYPLOT;
plotsetup(default)

 

Why does the following not work?

resizeMYPLOT := proc (plotObj)

     MYPLOT := plotObj:

          plotsetup(jpeg, plotoutput = "/Users/username/Desktop/EXPAND.jpg",

          plotoptions = "height=1000,width=1000");

     MYPLOT;

     plotsetup(default)

end proc

plot(something);

resizeMYPLOT(%);

 

 

Mac w OS X, 10.4.6, 3.06 GHz Intel Duo with 4GB RAM, Maple14 Student

Please Wait...