|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
GridLines
GridLines
is an option for two-dimensional graphics functions that specifies grid lines.
DetailsDetails
- The following settings can be given for GridLines:
-
None no grid lines drawn Automatic grid lines placed automatically {xgrid,ygrid} grid lines specified separately in each direction - With the Automatic setting, grid lines are usually placed at points whose coordinates have the minimum number of digits in their decimal representation.
- For each direction, the following grid line options can be given:
-
None no grid lines drawn Automatic grid line positions chosen automatically {x1,x2,...} grid lines drawn at the specified positions {{x1,style1},...} grid lines with specified styles func a function to be applied to
,
to get the grid line option - Grid line styles can involve any graphics directives, such as RGBColor and Thickness.
- The grid line function
may return any other grid line option. - AbsoluteOptions gives the explicit form of GridLines specifications when Automatic settings are used.
- GridLinesStyle gives default styles to use for grid lines.
ExamplesExamplesopen allclose all
Basic Examples (4)Basic Examples (4)
Put grids across a 2D graphic:
| In[1]:= |
| Out[1]= | ![]() |
Draw grid lines at the specific positions:
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
Specify overall grid lines style using GridLinesStyle:
| In[1]:= |
| Out[1]= | ![]() |
New in 2
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




