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:

Wolfram Research (2007), ImagePadding, Wolfram Language function, https://reference.wolfram.com/language/ref/ImagePadding.html.

Text

Wolfram Research (2007), ImagePadding, Wolfram Language function, https://reference.wolfram.com/language/ref/ImagePadding.html.

CMS

Wolfram Language. 2007. "ImagePadding." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ImagePadding.html.

APA

Wolfram Language. (2007). ImagePadding. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImagePadding.html

BibTeX

@misc{reference.wolfram_2024_imagepadding, author="Wolfram Research", title="{ImagePadding}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ImagePadding.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_imagepadding, organization={Wolfram Research}, title={ImagePadding}, year={2007}, url={https://reference.wolfram.com/language/ref/ImagePadding.html}, note=[Accessed: 21-November-2024 ]}