ImagePadding
This feature is not supported on the Wolfram Cloud.

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.

DetailsDetails

  • Settings for ImagePadding are given in printer's points.
  • Padding specified by ImagePadding is left inside the region defined by ImageSize, but outside the region defined by PlotRange and PlotRangePadding.
  • Possible settings for ImagePadding are:
  • Noneleave no padding
    Allleave enough padding for all objects that are present
    mthe same padding on all sides
    {{left,right},{bottom,top}}different padding on different sides
  • With PlotRangeClipping->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.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Leave no padding outside of the plot range:

In[1]:=
Click for copyable input
Out[1]=

Leave enough padding for all objects that are present:

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=

Specify different padding on each side:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2007
(6.0)