Mathematica 9 is now available

GridLines

Usage

GridLines是二维图形函数的可选项,用来指定网格线.


Notes

• 可以使用下列GridLines设置:
"\!\(\*StyleBox[\"\\\"None\\\"\", \"MR\"]\) "不画出网格线
"\!\(\*StyleBox[\"\\\"Automatic\\\"\", \"MR\"]\) ""自动放置网格线"
{"\!\(\*StyleBox[\"\\\"xgrid\\\"\", \"TI\"]\)\!\(\*StyleBox[\"\\\",\\\"\", \"MR\"]\) \!\(\*StyleBox[\"\\\"ygrid\\\"\", \"TI\"]\)"}" "分别在每一个方向上指定网格线
• 在Automatic设置中,网格线通常被放在坐标具有最小数字(十进制表示)的点上.
• 在每个方向上,可以使用下列网格线可选项:
"\!\(\*StyleBox[\"\\\"None\\\"\", \"MR\"]\) "不画出网格线
"\!\(\*StyleBox[\"\\\"Automatic\\\"\", \"MR\"]\) "自动选择网格线位置
{"\!\(\*StyleBox[\"\\\"x\\\"\", \"TI\"]\)"1"\!\(\*StyleBox[\"\\\",\\\"\", \"MR\"]\) ""\!\(\*StyleBox[\"\\\"x\\\"\", \"TI\"]\)"2"\!\(\*StyleBox[\"\\\",\\\"\", \"MR\"]\) ... "}" "在指定位置画出网格线
{{"\!\(\*StyleBox[\"\\\"x\\\"\", \"TI\"]\)"1"\!\(\*StyleBox[\"\\\",\\\"\", \"MR\"]\) ""\!\(\*StyleBox[\"\\\"style\\\"\", \"TI\"]\)"1}"\!\(\*StyleBox[\"\\\",\\\"\", \"MR\"]\) ... "}" ""使用指定风格的网格线"
"\!\(\*StyleBox[\"\\\"func\\\"\", \"TI\"]\) "将把一个函数应用到xmin,xmax上以获得网格线可选项
• 网格线的风格可以包含诸如RGBColorThickness的图形指令.
• 网格线的缺省颜色为亮蓝色. • 网格线函数func[xmin, xmax]可能返回任何其它网格线可选项.
• 在使用Automatic设置时,AbsoluteOptions给出GridLines指定的显式形式.
• 参见Mathematica 全书: 1.9.3节, 2.9.5节 和 2.9.5节.
Further Examples

This gives a plot with grid lines in both the vertical and horizontal directions.

Evaluate the cell to see the graphic.

In[1]:=  

This plot specifies the grid lines in the vertical direction explicitly and lets Mathematica compute the horizontal lines automatically.

Evaluate the cell to see the graphic.

In[2]:=  



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.