This function has not been fully integrated into the long-term Mathematica system, and is subject to change.

is an option for grids that specifies the spacing between the content of the grid and the frame surrounding it.


  • GridFrameMargins->{{l, r}, {b, t}} determines the size of the left, right, bottom, and top margins, respectively. Left and right margins are specified in em units; bottom and top margins are specified in units of x-heights.
  • The default setting is GridFrameMargins->{{0.4, 0.4}, {0.5, 0.5}}.
  • For a selected grid, GridFrameMargins is set as an option for GridBox, and applies only to the selection.
New in 4.0
New to Mathematica? Find your learning path »
Have a question? Ask support »