Difference between revisions of "StickGraph Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.2}}</noinclude> | <noinclude>{{Manual Page|version=4.2}}</noinclude> | ||
{{command|chart}} | {{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>}} | |
+ | ;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|1=<code><nowiki>StickGraph[{(1, 1), (3, 2), (4, 5), (5, 7)}, false]</nowiki></code>}} | ||
+ | ;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|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>}} | |
− | |||
− |
Revision as of 14:56, 4 September 2013
- 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]