Difference between revisions of "SetPerspective Command"
From GeoGebra Manual
m (Text replace - "" to "") |
m (added icons) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=5.0}}</noinclude> | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} |
− | {{command|scripting}} | ||
− | |||
;SetPerspective[ <Text> ] | ;SetPerspective[ <Text> ] | ||
Changes the layout and visibility of Views. The text parameter describes the desired layout. The text should be a valid expression - Views are represented by variables (letters): the horizontal arrangement of Views is represented by the related letters juxtaposition, and their vertical arrangement by a division symbol <code><nowiki> /</nowiki></code>. | Changes the layout and visibility of Views. The text parameter describes the desired layout. The text should be a valid expression - Views are represented by variables (letters): the horizontal arrangement of Views is represented by the related letters juxtaposition, and their vertical arrangement by a division symbol <code><nowiki> /</nowiki></code>. | ||
Line 9: | Line 7: | ||
|- | |- | ||
|A | |A | ||
− | |Algebra | + | |[[File:Menu view algebra.svg|link=|16px]] [[Algebra View|Algebra]] |
|- | |- | ||
|B | |B | ||
− | |Probability calculator | + | |[[File:Menu view probability.svg|link=|18px]] [[Probability calculator]] |
|- | |- | ||
|C | |C | ||
− | |CAS | + | |[[File:Menu view cas.svg|link=|16px]] [[CAS View|CAS]] |
|- | |- | ||
|D | |D | ||
− | |Graphics 2 | + | |[[File:Menu view graphics2.svg|link=|16px]] [[Graphics View|Graphics 2]] |
|- | |- | ||
|G | |G | ||
− | |Graphics | + | |[[File:Menu view graphics.svg|link=|16px]] [[Graphics View|Graphics]] |
|- | |- | ||
|L | |L | ||
− | |Construction protocol | + | |[[File:Menu view construction protocol.svg|link=|16px]] [[Construction protocol]] |
|- | |- | ||
|P | |P | ||
− | |Properties | + | |[[Properties Dialog|Properties]] |
|- | |- | ||
|R | |R | ||
− | |Data analysis | + | |Data analysis (Desktop only) |
|- | |- | ||
|S | |S | ||
− | |Spreadsheet | + | |[[File:Menu view spreadsheet.svg|link=|16px]] [[Spreadsheet View|Spreadsheet]] |
|- | |- | ||
|T | |T | ||
− | |3D Graphics | + | |[[File:Perspectives algebra 3Dgraphics.svg|link=|16px]] [[3D Graphics View|3D Graphics]] |
|} | |} | ||
{{example|1= | {{example|1= | ||
− | * <code>SetPerspective["G"]</code> makes only the ''Graphics View'' visible | + | * <code>SetPerspective["G"]</code> makes only the [[File:Menu view graphics.svg|link=|16px]] ''Graphics View'' visible |
− | * <code>SetPerspective["AGS"]</code> makes ''Algebra'', ''Graphics'' and ''Spreadsheet View'' visible, aligned horizontally | + | * <code>SetPerspective["AGS"]</code> makes [[File:Menu view algebra.svg|link=|16px]] ''Algebra'', [[File:Menu view graphics.svg|link=|16px]] ''Graphics'' and [[File:Menu view spreadsheet.svg|link=|16px]] ''Spreadsheet View'' visible, aligned horizontally |
− | * <code>SetPerspective["S/G"]</code> makes ''Spreadsheet'' and ''Graphics View'' visible with ''Spreadsheet'' on top and ''Graphics View'' below | + | * <code>SetPerspective["S/G"]</code> makes [[File:Menu view spreadsheet.svg|link=|16px]] ''Spreadsheet'' and [[File:Menu view graphics.svg|link=|16px]] ''Graphics View'' visible with ''Spreadsheet'' on top and ''Graphics View'' below |
− | * <code>SetPerspective["S/(GA)"]</code> is similar as above, the bottom part of the screen consists of ''Graphics View'' on the left and ''Algebra View'' on the right | + | * <code>SetPerspective["S/(GA)"]</code> is similar as above, the bottom part of the screen consists of [[File:Menu view graphics.svg|link=|16px]] ''Graphics View'' on the left and [[File:Menu view algebra.svg|link=|16px]] ''Algebra View'' on the right |
}} | }} | ||
Revision as of 09:10, 11 August 2015
- SetPerspective[ <Text> ]
Changes the layout and visibility of Views. The text parameter describes the desired layout. The text should be a valid expression - Views are represented by variables (letters): the horizontal arrangement of Views is represented by the related letters juxtaposition, and their vertical arrangement by a division symbol /
.
Letter | View |
---|---|
A | Algebra |
B | Probability calculator |
C | CAS |
D | Graphics 2 |
G | Graphics |
L | Construction protocol |
P | Properties |
R | Data analysis (Desktop only) |
S | Spreadsheet |
T | 3D Graphics |
Example:
SetPerspective["G"]
makes only the Graphics View visibleSetPerspective["AGS"]
makes Algebra, Graphics and Spreadsheet View visible, aligned horizontallySetPerspective["S/G"]
makes Spreadsheet and Graphics View visible with Spreadsheet on top and Graphics View belowSetPerspective["S/(GA)"]
is similar as above, the bottom part of the screen consists of Graphics View on the left and Algebra View on the right
Instead of these expressions you may also use a text containing a single digit to use a predefined perspective:
Text | Perspective |
---|---|
"1" | Algebra And Graphics |
"2" | Geometry |
"3" | Spreadsheet |
"4" | CAS |
"5" | 3D Graphics |
"6" | Probability |
These roughly correspond to "AG", "G", "SG", "CG", "AT" and "B" respectively, but may also affect the display of Input Bar and content of Toolbar.
Notes:
- See also SetActiveView command.