Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Graphics Options & Styling > Graphics Shape & Size > Plotting and Image Regions > PlotRangePadding >
Mathematica > Visualization and Graphics > Graphics Options & Styling > Plotting Options > Plotting and Image Regions > PlotRangePadding >

PlotRangePadding

PlotRangePadding
is an option for graphics functions that specifies how much further axes etc. should extend beyond the range of coordinates specified by PlotRange.
  • 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
By default, 2% of padding is added to the plot range in each direction:
No padding added:
Include 1 coordinate unit of padding on all sides:
By default, 2% of padding is added to the plot range in each direction:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
No padding added:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Include 1 coordinate unit of padding on all sides:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Pad on all sides by the size of the image:
Specify different padding on each side:
Add padding to make the range of data more obvious:
No padding is added if the plot range is explicit:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF