Difference between revisions of "StickGraph Command"

From GeoGebra Manual
Jump to: navigation, search
m
(command syntax: changed [ ] into ( ))
 
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
;StickGraph[ <List of Points> ]
+
;StickGraph( <List of Points> )
 
:Draws a stick graph of the given points. For each point a vertical line segment is drawn from the x-axis to the point.
 
:Draws a stick graph of the given points. For each point a vertical line segment is drawn from the x-axis to the point.
:{{example|1=<code><nowiki>StickGraph[{(1, 1), (3, 2), (4, 5), (5, 7)}]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StickGraph({(1, 1), (3, 2), (4, 5), (5, 7)})</nowiki></code>}}
;StickGraph[ <List of Points>, <Boolean Horizontal> ]
+
;StickGraph( <List of Points>, <Boolean Horizontal> )
 
:Draws a stick graph of the given points. If ''Horizontal = true'', then horizontal line segments are drawn from the y-axis to each point.  If ''Horizontal = false'', then vertical line segments are drawn from the x-axis to each point.
 
:Draws a stick graph of the given points. If ''Horizontal = true'', then horizontal line segments are drawn from the y-axis to each point.  If ''Horizontal = false'', then vertical line segments are drawn from the x-axis to each point.
:{{example|1=<code><nowiki>StickGraph[{(1, 1), (3, 2), (4, 5), (5, 7)}, false]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StickGraph({(1, 1), (3, 2), (4, 5), (5, 7)}, false)</nowiki></code>}}
;StickGraph[ <List of x-coordinates>, <List of y-coordinates> ]
+
;StickGraph( <List of x-coordinates>, <List of y-coordinates> )
 
:Draws a stick graph of points created from the two lists of coordinates. For each point a vertical line segment is drawn from the x-axis to the point.
 
:Draws a stick graph of points created from the two lists of coordinates. For each point a vertical line segment is drawn from the x-axis to the point.
:{{example|1=<code><nowiki>StickGraph[{1, 3, 4, 5}, {1, 2, 5, 7}]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StickGraph({1, 3, 4, 5}, {1, 2, 5, 7})</nowiki></code>}}
;StickGraph[ <List of x-coordinates>, <List of y-coordinates>, <Boolean Horizontal> ]
+
;StickGraph( <List of x-coordinates>, <List of y-coordinates>, <Boolean Horizontal> )
 
:Draws a stick graph of points created from the two lists of coordinates. If ''Horizontal'' = ''true'', then horizontal line segments are drawn from the y-axis to each point.  If ''Horizontal'' = ''false'', then vertical line segments are drawn from the x-axis to each point.  
 
:Draws a stick graph of points created from the two lists of coordinates. If ''Horizontal'' = ''true'', then horizontal line segments are drawn from the y-axis to each point.  If ''Horizontal'' = ''false'', then vertical line segments are drawn from the x-axis to each point.  
:{{example|1=<code><nowiki>StickGraph[{1, 3, 4, 5}, {1, 2, 5, 7}, true]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StickGraph({1, 3, 4, 5}, {1, 2, 5, 7}, true)</nowiki></code>}}

Latest revision as of 11:26, 3 October 2017


StickGraph( <List of Points> )
Draws a stick graph of the given points. For each point a vertical line segment is drawn from the x-axis to the point.
Example: StickGraph({(1, 1), (3, 2), (4, 5), (5, 7)})
StickGraph( <List of Points>, <Boolean Horizontal> )
Draws a stick graph of the given points. If Horizontal = true, then horizontal line segments are drawn from the y-axis to each point. If Horizontal = false, then vertical line segments are drawn from the x-axis to each point.
Example: StickGraph({(1, 1), (3, 2), (4, 5), (5, 7)}, false)
StickGraph( <List of x-coordinates>, <List of y-coordinates> )
Draws a stick graph of points created from the two lists of coordinates. For each point a vertical line segment is drawn from the x-axis to the point.
Example: StickGraph({1, 3, 4, 5}, {1, 2, 5, 7})
StickGraph( <List of x-coordinates>, <List of y-coordinates>, <Boolean Horizontal> )
Draws a stick graph of points created from the two lists of coordinates. If Horizontal = true, then horizontal line segments are drawn from the y-axis to each point. If Horizontal = false, then vertical line segments are drawn from the x-axis to each point.
Example: StickGraph({1, 3, 4, 5}, {1, 2, 5, 7}, true)
© 2024 International GeoGebra Institute