ImagePadding

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.

Details

  • 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.

Examples

open allclose all

Basic Examples  (4)

Leave no padding outside of the plot range:

Leave enough padding for all objects that are present:

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

Specify different padding on each side:

Scope  (4)

Thick lines and labels outside of the bounding box can be clipped without ImagePadding:

Leave enough padding for labels:

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

Specify different padding on different sides:

Properties & Relations  (2)

ImagePadding is defined within ImageSize:

ImageMargins is defined outside of ImageSize:

Introduced in 2007
 (6.0)