Difference between revisions of "SetPerspective Command"
(Add missing syntaxes) |
|||
(13 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=5.0}}</noinclude> | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} |
− | {{command|scripting | + | ;SetPerspective( <Text> ) |
− | + | Changes the layout and visibility of ''Views''. The text parameter is either the full description of the layout, description of a single view you want to change or ID of one of the standard perspectives. | |
− | ;SetPerspective | + | |
− | Changes the layout and visibility of Views. The text parameter | + | ===Full layout description=== |
+ | To change the whole layout you can describe the view positions using an 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>. | ||
{| class="pretty" | {| class="pretty" | ||
!Letter | !Letter | ||
Line 9: | Line 10: | ||
|- | |- | ||
|A | |A | ||
− | |Algebra | + | |[[File:Menu view algebra.svg|link=|16px]] [[Algebra View|Algebra]] |
|- | |- | ||
|B | |B | ||
− | |Probability | + | |[[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 | + | |[[File:Menu view construction protocol.svg|link=|16px]] [[Construction Protocol]] |
|- | |- | ||
|P | |P | ||
− | |Properties | + | |[[File:Menu-options.svg|link=|16px]] [[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 | ||
− | |Graphics 3D | + | |[[File:Perspectives algebra 3Dgraphics.svg|link=|16px]] [[3D Graphics View|3D Graphics]] |
|} | |} | ||
− | {{ | + | {{examples|1= |
− | * <code>SetPerspective | + | * <code>SetPerspective("G")</code> makes only the [[File:Menu view graphics.svg|link=|16px]] ''Graphics View'' visible |
− | * <code>SetPerspective | + | * <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 | + | * <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 | + | * <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 |
+ | }} | ||
+ | |||
+ | ===Single view change=== | ||
+ | To open or close individual ''Views'', add the symbols <code><nowiki>+</nowiki></code> or <code><nowiki>-</nowiki></code> before the ''View'' name (letter), respectively. In apps other than GeoGebra Classic (e.g. the Graphing Calculator) you can also use <code>Tools</code> and <code>Table</code>for the tools and table of values. | ||
+ | {{examples|1= | ||
+ | *<code>SetPerspective("+D")</code> adds ''Graphics View'' 2 to the currently displayed ones, on the right | ||
+ | *<code>SetPerspective("-D")</code> removes ''Graphics View'' 2 from the currently displayed ones | ||
+ | *<code>SetPerspective("+Tools")</code> opens the sidebar in Graphing Calculator and switches it to tools tab | ||
+ | *<code>SetPerspective("+Table")</code> opens the sidebar in Graphing Calculator and switches it to table of values | ||
+ | *<code>SetPerspective("-Tools")</code> closes the sidebar in Graphing Calculater, no matter which tab is selected | ||
}} | }} | ||
+ | |||
+ | ===Standard perspectives=== | ||
+ | You may also use a text containing a single digit to use a predefined perspective: | ||
+ | {| class="pretty" | ||
+ | |- | ||
+ | !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|1= | ||
+ | :*See also [[SetActiveView Command|SetActiveView]] command.}} |
Latest revision as of 16:44, 20 March 2020
- SetPerspective( <Text> )
Changes the layout and visibility of Views. The text parameter is either the full description of the layout, description of a single view you want to change or ID of one of the standard perspectives.
Full layout description
To change the whole layout you can describe the view positions using an 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 |
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
Single view change
To open or close individual Views, add the symbols +
or -
before the View name (letter), respectively. In apps other than GeoGebra Classic (e.g. the Graphing Calculator) you can also use Tools
and Table
for the tools and table of values.
SetPerspective("+D")
adds Graphics View 2 to the currently displayed ones, on the rightSetPerspective("-D")
removes Graphics View 2 from the currently displayed onesSetPerspective("+Tools")
opens the sidebar in Graphing Calculator and switches it to tools tabSetPerspective("+Table")
opens the sidebar in Graphing Calculator and switches it to table of valuesSetPerspective("-Tools")
closes the sidebar in Graphing Calculater, no matter which tab is selected
Standard perspectives
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.
- See also SetActiveView command.