I would like to save a simple plot to jpeg file on my hard disk. I've got a Maplet, and a Button which looks like that
Button['SIM']
(
"Save image",
onclick=Evaluate('function'='saveImage()')
)
and a procedure:
saveImage := proc()
plotsetup('jpeg', 'plotoutput'="plot.jpeg", 'plotoptions'="portrait,noborder");
plot3d(sin(x)+cos(y), x=0..2*Pi, y=0..2*Pi, 'axes'='boxed');