Difference between revisions of "StepGraph Command"

From GeoGebra Manual
Jump to: navigation, search
m (style point in last example)
(command syntax: changed [ ] into ( ))
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
{{command|chart}}
+
;StepGraph( <List of Points> )
;StepGraph[ <List of Points> ]
 
 
:Draws a step graph of the given list of points. Each point is connected to the next point in the list by a horizontal line segment.
 
:Draws a step graph of the given list of points. Each point is connected to the next point in the list by a horizontal line segment.
:{{example|1=<code><nowiki>StepGraph[{(1, 1), (3, 2), (4, 5), (5, 7)}]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StepGraph({(1, 1), (3, 2), (4, 5), (5, 7)})</nowiki></code>}}
;StepGraph[ <List of Points>, <Boolean Join> ]
+
;StepGraph( <List of Points>, <Boolean Join> )
 
:Draws a step graph of the given list of points. If ''Join = false'', then a horizontal line segment is drawn towards the x-coordinate of the next point, but a vertical line segment is not drawn. If ''Join = true'', then each point is connected to the next point in the list by a horizontal and a vertical line segment.
 
:Draws a step graph of the given list of points. If ''Join = false'', then a horizontal line segment is drawn towards the x-coordinate of the next point, but a vertical line segment is not drawn. If ''Join = true'', then each point is connected to the next point in the list by a horizontal and a vertical line segment.
:{{example|1=<code><nowiki>StepGraph[{(1, 1), (3, 2), (4, 5), (5, 7)}, true]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StepGraph({(1, 1), (3, 2), (4, 5), (5, 7)}, true)</nowiki></code>}}
;StepGraph[ <List of x-coordinates>, <List of y-coordinates> ]
+
;StepGraph( <List of x-coordinates>, <List of y-coordinates> )
 
:Draws a step graph of a list of points created from the given lists of coordinates. Each point is connected to the next point in the list by a horizontal line segment.
 
:Draws a step graph of a list of points created from the given lists of coordinates. Each point is connected to the next point in the list by a horizontal line segment.
:{{example|1=<code><nowiki>StepGraph[{1, 3, 4, 5}, {1, 2, 5, 7}]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StepGraph({1, 3, 4, 5}, {1, 2, 5, 7})</nowiki></code>}}
;StepGraph[ <List of x-coordinates>, <List of y-coordinates>, <Boolean Join> ]
+
;StepGraph( <List of x-coordinates>, <List of y-coordinates>, <Boolean Join> )
 
:Draws a step graph of a list of points created from the given lists of coordinates. If ''Join = false'', then a horizontal line segment is drawn towards the x-coordinate of the next point, but a vertical line segment is not drawn. If ''Join = true'', then each point is connected to the next point in the list by a horizontal and a vertical line segment.
 
:Draws a step graph of a list of points created from the given lists of coordinates. If ''Join = false'', then a horizontal line segment is drawn towards the x-coordinate of the next point, but a vertical line segment is not drawn. If ''Join = true'', then each point is connected to the next point in the list by a horizontal and a vertical line segment.
:{{example|1=<code><nowiki>StepGraph[{1, 3, 4, 5}, {1, 2, 5, 7}, false]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StepGraph({1, 3, 4, 5}, {1, 2, 5, 7}, true)</nowiki></code>}}
;StepGraph[ <List of x-coordinates>, <List of y-coordinates>, <Boolean Join>, <Point Style> ]
+
;StepGraph( <List of x-coordinates>, <List of y-coordinates>, <Boolean Join>, <Point Style> )
 
:Draws a step graph as described above.   
 
:Draws a step graph as described above.   
 
:Point style values of ''-2, -1, 0, 1, -1'' determine how points are drawn as follows:
 
:Point style values of ''-2, -1, 0, 1, -1'' determine how points are drawn as follows:
Line 21: Line 20:
 
:: ''-1'' = solid points on the left
 
:: ''-1'' = solid points on the left
 
:: ''-2'' = solid points on the left, open points on the right
 
:: ''-2'' = solid points on the left, open points on the right
:{{example|1=<code><nowiki>StepGraph[{1, 3, 4, 5}, {1, 2, 5, 7}, false, 1]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StepGraph({1, 3, 4, 5}, {1, 2, 5, 7}, false, 1)</nowiki></code>}}
;StepGraph[ <List of Points>, <Boolean Join>, <Point Style> ]
+
;StepGraph( <List of Points>, <Boolean Join>, <Point Style> )
 
:Draws a step graph as described above.
 
:Draws a step graph as described above.
:{{example|1=<code><nowiki>StepGraph[{(1, 1), (3, 2), (4, 5), (5, 7)}, false, 1]</nowiki></code>}}
+
:{{example|1=<code><nowiki>StepGraph({(1, 1), (3, 2), (4, 5), (5, 7)}, false, 1)</nowiki></code>}}

Latest revision as of 11:24, 3 October 2017


StepGraph( <List of Points> )
Draws a step graph of the given list of points. Each point is connected to the next point in the list by a horizontal line segment.
Example: StepGraph({(1, 1), (3, 2), (4, 5), (5, 7)})
StepGraph( <List of Points>, <Boolean Join> )
Draws a step graph of the given list of points. If Join = false, then a horizontal line segment is drawn towards the x-coordinate of the next point, but a vertical line segment is not drawn. If Join = true, then each point is connected to the next point in the list by a horizontal and a vertical line segment.
Example: StepGraph({(1, 1), (3, 2), (4, 5), (5, 7)}, true)
StepGraph( <List of x-coordinates>, <List of y-coordinates> )
Draws a step graph of a list of points created from the given lists of coordinates. Each point is connected to the next point in the list by a horizontal line segment.
Example: StepGraph({1, 3, 4, 5}, {1, 2, 5, 7})
StepGraph( <List of x-coordinates>, <List of y-coordinates>, <Boolean Join> )
Draws a step graph of a list of points created from the given lists of coordinates. If Join = false, then a horizontal line segment is drawn towards the x-coordinate of the next point, but a vertical line segment is not drawn. If Join = true, then each point is connected to the next point in the list by a horizontal and a vertical line segment.
Example: StepGraph({1, 3, 4, 5}, {1, 2, 5, 7}, true)
StepGraph( <List of x-coordinates>, <List of y-coordinates>, <Boolean Join>, <Point Style> )
Draws a step graph as described above.
Point style values of -2, -1, 0, 1, -1 determine how points are drawn as follows:
0 = no points are drawn
1 = solid points on the right
2 = solid points on the right, open points on the left
-1 = solid points on the left
-2 = solid points on the left, open points on the right
Example: StepGraph({1, 3, 4, 5}, {1, 2, 5, 7}, false, 1)
StepGraph( <List of Points>, <Boolean Join>, <Point Style> )
Draws a step graph as described above.
Example: StepGraph({(1, 1), (3, 2), (4, 5), (5, 7)}, false, 1)
© 2024 International GeoGebra Institute