Difference between revisions of "ShowGrid Command"

From GeoGebra Manual
Jump to: navigation, search
m (italics)
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.
 
:{{example|1=<div>
 
:{{example|1=<div>
:*<code><nowiki>ShowGrid[true]</nowiki></code> shows the grid in the active view.
+
:*<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>}}
+
:*<code><nowiki>ShowGrid[false]</nowiki></code> hides the grid in the active View.</div>}}
 
;ShowGrid[ <View>, <Boolean> ]
 
;ShowGrid[ <View>, <Boolean> ]
:Shows/hides the grid in the specified graphics view with number 1 or 2 (or 3 in GeoGebra 5).
+
:Shows/hides the grid in the ''Graphics View'' specified by the number 1 or 2 (or 3 for ''3D View'' in GeoGebra 5).
 
:{{example|1=<div>
 
:{{example|1=<div>
:*<code><nowiki>ShowGrid[1, true]</nowiki></code> shows the grid in the first view.
+
:*<code><nowiki>ShowGrid[1, true]</nowiki></code> shows the grid in ''Graphics View''.
:*<code><nowiki>ShowGrid[2, false]</nowiki></code> hides the grid in the second view.</div>}}
+
:*<code><nowiki>ShowGrid[2, false]</nowiki></code> hides the grid in ''Graphics 2 View''.</div>}}
 
{{Note|1= See also [[ShowAxes Command|ShowAxes command]].}}
 
{{Note|1= See also [[ShowAxes Command|ShowAxes command]].}}

Revision as of 08:57, 11 April 2014



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 Graphics View specified by the number 1 or 2 (or 3 for 3D View in GeoGebra 5).
Example:
  • ShowGrid[1, true] shows the grid in Graphics View.
  • ShowGrid[2, false] hides the grid in Graphics 2 View.
Note: See also ShowAxes command.
© 2024 International GeoGebra Institute