({{, (RefLink[ImagePadding, paclet:ref/ImagePadding]) 
is an option for graphics functions that specifies what absolute extra padding should be left for extended objects such as thick lines and annotations such as tick and axis labels.}})

OpenersNotesSection(Spacer1)Details

Settings for (RefLink[ImagePadding, paclet:ref/ImagePadding]) are given in printer's points.

Padding specified by (RefLink[ImagePadding, paclet:ref/ImagePadding]) is left inside the region defined by (RefLink[ImageSize, paclet:ref/ImageSize]), but outside the region defined by (RefLink[PlotRange, paclet:ref/PlotRange]) and (RefLink[PlotRangePadding, paclet:ref/PlotRangePadding]).

Possible settings for (RefLink[ImagePadding, paclet:ref/ImagePadding]) are:

With (RefLink[PlotRangeClipping, paclet:ref/PlotRangeClipping])->(RefLink[True, paclet:ref/True]), objects such as thick lines are still clipped at the edge of the plot range region, even if image padding has been specified. Annotations such as tick and axis labels are not clipped in this case.

OpenersPrimaryExamplesSection(Spacer1)Examples  (10)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Leave no padding outside of the plot range:

Graphics[{Thickness[.3],Pink,Circle[]},ImagePadding->None,Frame->True]

Leave enough padding for all objects that are present:

Framed[Graphics[{Thickness[.3],Pink,Circle[]},ImagePadding->All,Frame->True],FrameMargins->0]

Specify the same padding for all sides in printer's points:

Framed[Graphics[{Thickness[.3],Pink,Circle[]},ImagePadding->40,Frame->True]]

Specify different padding on each side:

Framed[Graphics[{Thickness[.2],Pink,Circle[]},ImagePadding->{{40,10},{20,5}},Frame->True]]

OpenersExampleSection1(Spacer1)Scope  (4)

Thick lines and labels outside of the bounding box can be clipped without (RefLink[ImagePadding, paclet:ref/ImagePadding]):

Framed[Graphics3D[{EdgeForm[Directive[Thickness[0.1],Pink]],Cuboid[]},Axes->True,AxesLabel->{x,y,"z-axis"},ImagePadding->None],FrameMargins->0]

Leave enough padding for labels:

Framed[Graphics3D[{EdgeForm[Directive[Thickness[0.1],Pink]],Cuboid[]},Axes->True,AxesLabel->{x,y,"z-axis"},ImagePadding->All],FrameMargins->0]

Specify the same padding for all sides in printer's points:

Framed[Graphics3D[{EdgeForm[Directive[Thickness[0.1],Pink]],Cuboid[]},Axes->True,ImagePadding->30],FrameMargins->0]

Specify different padding on different sides:

Framed[Graphics3D[{EdgeForm[Directive[Thickness[0.1],Pink]],Cuboid[]},Axes->True,ImagePadding->{{40,40},{10,10}}],FrameMargins->0]

OpenersExampleSection2(Spacer1)Properties & Relations  (2)

(RefLink[ImagePadding, paclet:ref/ImagePadding]) is defined within (RefLink[ImageSize, paclet:ref/ImageSize]):

Table[Framed[Graphics[{Pink,Disk[]},Frame->True,ImagePadding->k,ImageSize->100,FrameTicks->{{{-1,1},None},{{-1,1},None}}]],{k,{10,20,30}}]

(RefLink[ImageMargins, paclet:ref/ImageMargins]) is defined outside of (RefLink[ImageSize, paclet:ref/ImageSize]):

Table[Framed[Graphics[{Pink,Disk[]},Frame->True,ImageMargins->k,ImageSize->70,FrameTicks->{{{-1,1},None},{{-1,1},None}}]],{k,{10,20,30}}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[PlotRangePadding, paclet:ref/PlotRangePadding])  ▪  (RefLink[ImageMargins, paclet:ref/ImageMargins])  ▪  (RefLink[PlotRangeClipping, paclet:ref/PlotRangeClipping])  ▪  (RefLink[SphericalRegion, paclet:ref/SphericalRegion])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Plotting and Image Regions, paclet:guide/PlottingAndImageRegions])}, {▪(RefLinkPlain[Options & Styling for Interactive Manipulation, paclet:guide/OptionsAndStylingForInteractiveManipulation])}, {▪(RefLinkPlain[Graphics Options & Styling, paclet:guide/GraphicsOptionsAndStyling])}})}})