Resizing, Cropping, and Adding Margins to Graphics

Changing the AspectRatio

The following sequence shows how to change the aspect ratio of a plot.

Plot[Cos[x]+1/2,{x,0,3Pi}]

Using the Selection tool, click to select the graphic.

Shift+drag a handle to change the aspect ratio.

Cropping

The following sequence shows how to crop a portion of a plot.

Plot[ChebyshevU[6,x],{x,-1,1}]

Using the Selection tool, click a graphic to select it.

MacOSXCmdCtrl+drag a handle to crop the plot.

Setting Margins

The following sequence shows how to set the margins of a graphic.

Plot[Cos[x],{x,-2π,2π}]

Click to select the graphic.

Drag the frame (not a handle) to push out the margins.

To change a margin directly, drag a margin frame handle.

To keep the margins equal, Shift+drag the frame.

To get rid of the margins, Shift+drag the graphics frame to the top-left corner.