#### 8.3.45 size

• size( <width + i*height> [, ratio(Xscale/Yscale)] )
• Description: sets the graphic sizes: <width> and <height> (margins included) in cm. If the parameter <height> is zero, then it means that width=height.

If the parameter <ratio> is omitted, the scales on the two axes are calulated so that the drawing fits in the framework while keeping the current ratio.

If the <ratio> is $0$ then the scales are calculated to get the exact given size (the current ratio is then likely not kept)

The coordinate system is orthonormal if the parameter <ratio> is 1..

NB: a call to the functions Fenetre (window) Marges (margins) or to the macro view, will change the graphic size. It is then better to change the margins and the graphical window before giving the size.

The width of a graphic is given with the formula:

(Xmax-Xmin)*Xscale+margeG+margeD

and the height with:

(Ymax-Ymin)*Yscale+margeH+margeB