Difference between revisions of "ShowGrid Command"
From GeoGebra Manual
Noel Lambert (talk | contribs) ("scripting" instead "text") |
|||
Line 2: | Line 2: | ||
{{command|scripting}} | {{command|scripting}} | ||
;ShowGrid[ ] | ;ShowGrid[ ] | ||
− | :Shows the grid in the active view | + | :Shows the grid in the active view. |
;ShowGrid[ <Boolean> ] | ;ShowGrid[ <Boolean> ] | ||
− | :Shows/hides the grid in the active view | + | :Shows/hides the grid in the active view. |
− | ;ShowGrid[ < | + | :{{example|1=<div> |
− | :Shows/hides the grid in the specified graphics view with number 1 or 2 (or 3 in GeoGebra 5) | + | :*<code><nowiki>ShowGrid[true]</nowiki></code> shows the grid in the active view. |
− | + | :*<code><nowiki>ShowGrid[false]</nowiki></code> hides the grid in the active view.</div>}} | |
+ | ;ShowGrid[ <View>, <Boolean> ] | ||
+ | :Shows/hides the grid in the specified graphics view with number 1 or 2 (or 3 in GeoGebra 5). | ||
+ | :{{example|1=<div> | ||
+ | :*<code><nowiki>ShowGrid[1, true]</nowiki></code> shows the grid in the first view. | ||
+ | :*<code><nowiki>ShowGrid[2, false]</nowiki></code> hides the grid in the second view.</div>}} | ||
{{Note|1= See also [[ShowAxes Command|ShowAxes command]].}} | {{Note|1= See also [[ShowAxes Command|ShowAxes command]].}} |
Revision as of 09:46, 16 July 2013
- ShowGrid[ ]
- Shows the grid in the active view.
- ShowGrid[ <Boolean> ]
- Shows/hides the grid in the active view.
- Example:
ShowGrid[true]
shows the grid in the active view.ShowGrid[false]
hides the grid in the active view.
- ShowGrid[ <View>, <Boolean> ]
- Shows/hides the grid in the specified graphics view with number 1 or 2 (or 3 in GeoGebra 5).
- Example:
ShowGrid[1, true]
shows the grid in the first view.ShowGrid[2, false]
hides the grid in the second view.
Note: See also ShowAxes command.