This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


Updated In 7 Graphic
is an option for 2D graphics functions that specifies how grid lines should be rendered.
  • GridLinesStyle->style specifies that all grid lines should be rendered by default with the specified style.
  • GridLinesStyle->{xstyle, ystyle} specifies that x and y grid lines should use different styles.  »
  • Style specifications can refer to styles using style names from current stylesheets.
  • Any outside styles not explicitly overridden by settings in GridLinesStyle will still be used.
Specify overall grid lines style:
Specify x and y styles differently:
Individually styled grid lines can be used with GridLinesStyle, and have higher priority:
New in 6 | Last modified in 7