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:
-
None leave no padding All leave enough padding for all objects that are present m the 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 allBasic Examples (4)Summary of the most common use cases
Leave no padding outside of the plot range:

https://wolfram.com/xid/09bu4m46a-cpqt0r

Leave enough padding for all objects that are present:

https://wolfram.com/xid/09bu4m46a-estjoe

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

https://wolfram.com/xid/09bu4m46a-b18wdc

Specify different padding on each side:

https://wolfram.com/xid/09bu4m46a-h1j0ij

Scope (4)Survey of the scope of standard use cases
Thick lines and labels outside of the bounding box can be clipped without ImagePadding:

https://wolfram.com/xid/09bu4m46a-bea2sr

Leave enough padding for labels:

https://wolfram.com/xid/09bu4m46a-f4c0us

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

https://wolfram.com/xid/09bu4m46a-1pfck

Specify different padding on different sides:

https://wolfram.com/xid/09bu4m46a-b9yjf7

Properties & Relations (2)Properties of the function, and connections to other functions
ImagePadding is defined within ImageSize:

https://wolfram.com/xid/09bu4m46a-n0p

ImageMargins is defined outside of ImageSize:

https://wolfram.com/xid/09bu4m46a-bdik7b

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.
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.
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
Wolfram Language. (2007). ImagePadding. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImagePadding.html
BibTeX
@misc{reference.wolfram_2025_imagepadding, author="Wolfram Research", title="{ImagePadding}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ImagePadding.html}", note=[Accessed: 22-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_imagepadding, organization={Wolfram Research}, title={ImagePadding}, year={2007}, url={https://reference.wolfram.com/language/ref/ImagePadding.html}, note=[Accessed: 22-April-2025
]}