WOLFRAM

is an option for graphics functions that specifies how much further axes etc. should extend beyond the range of coordinates specified by PlotRange.

Details

  • PlotRangePadding can be used for both two- and three-dimensional graphics.
  • The settings can be of the following forms:
  • pthe same padding in all directions
    {px,py,}different padding in different directions
    {{pxL,pxR},}different padding on left and right, etc.
  • For each direction the following forms can be used:
  • Automatican automatic amount of padding
    ss coordinate units
    Scaled[s]a fraction s of the plot
    Noneno padding
  • If PlotRange includes all points in a plot, then PlotRangePadding->Scaled[s] yields a plot that covers a fraction 1-2s of the whole plotting area.
  • PlotRangePadding->Automatic adds a total of 4% for PlotRange settings All, Full, and Automatic. For explicit settings, it adds no padding.
  • Any padding specified by ImagePadding is added outside padding specified by PlotRangePadding.

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

By default, 2% of padding is added to the plot range in each direction:

Out[1]=1
Out[2]=2

No padding added:

Out[1]=1
Out[2]=2

Include 1 coordinate unit of padding on all sides:

Out[1]=1
Out[2]=2

Scope  (2)Survey of the scope of standard use cases

Pad on all sides by the size of the image:

Out[1]=1
Out[2]=2

Specify different padding on each side:

Out[1]=1
Out[2]=2

Applications  (1)Sample problems that can be solved with this function

Add padding to make the range of data more obvious:

Out[1]=1

Properties & Relations  (1)Properties of the function, and connections to other functions

No padding is added if the plot range is explicit:

Out[1]=1
Wolfram Research (2007), PlotRangePadding, Wolfram Language function, https://reference.wolfram.com/language/ref/PlotRangePadding.html.
Wolfram Research (2007), PlotRangePadding, Wolfram Language function, https://reference.wolfram.com/language/ref/PlotRangePadding.html.

Text

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

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

CMS

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

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

APA

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

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

BibTeX

@misc{reference.wolfram_2025_plotrangepadding, author="Wolfram Research", title="{PlotRangePadding}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/PlotRangePadding.html}", note=[Accessed: 27-March-2025 ]}

@misc{reference.wolfram_2025_plotrangepadding, author="Wolfram Research", title="{PlotRangePadding}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/PlotRangePadding.html}", note=[Accessed: 27-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_plotrangepadding, organization={Wolfram Research}, title={PlotRangePadding}, year={2007}, url={https://reference.wolfram.com/language/ref/PlotRangePadding.html}, note=[Accessed: 27-March-2025 ]}

@online{reference.wolfram_2025_plotrangepadding, organization={Wolfram Research}, title={PlotRangePadding}, year={2007}, url={https://reference.wolfram.com/language/ref/PlotRangePadding.html}, note=[Accessed: 27-March-2025 ]}