Can the size (width, length) of a 2D plot be specified programmatically? In particular, when a document is re-executed, I would like the graph outputs of plot(...) to be automatically sized to pre-defined values, for example to fit a full page. Right now, I am having to re-size each of my plots manually. For creating a report with many graphs, this is annoying to do and leads to plots that are not always exactly the same size.

I am thinking of the equivalent of ...

> plot(x^2,x=0..2,[width=6in,height=8in])

or ...

> SizeMyPlot:=proc(width,heigth)
       plots:-options(width=width,height=height)
   end proc:

Any suggestions would be appreciated.

--

JJW


Please Wait...