Plotting (Printable)
clearplot, clear-plot [Observer, Turtle]
Clears everything drawn by all plot pens, and resets all pens to (0, 0).
plot y-value
[Observer, Turtle]
Plots a point at y-value
, then increments the x-value
of the plot pen by 1. The pen will rescale itself when it reaches plot-xmax
.
plot-title [Observer, Turtle]
Returns the title of the plot.
plot-xlabel [Observer, Turtle]
Returns the value of the label of the x-axis of the graph.
plot-xmax [Observer, Turtle]
Returns the maximum x-value of the plot.
plot-xmin [Observer, Turtle]
Returns the minimum x-value of the plot.
plot-ylabel [Observer, Turtle]
Returns the value of the label of the y-axis of the graph.
plot-ymax [Observer, Turtle]
Returns the maximum y-value of the plot.
plot-ymin [Observer, Turtle]
Returns the minimum y-value of the plot.
pp integer
[Observer, Turtle]
Selects a plot pen (e.g. pp 1
). Subsequent plotting commands
are executed by the selected plot pen. There are ten plot pens, numbered 1 through
10.
ppc [Observer, Turtle]
Returns the current plot pen color.
ppd [Observer, Turtle]
Puts the plot pen down, so that it draws connected graphs.
ppreset [Observer, Turtle]
Clears everything this plot pen has drawn and resets its position to (0, 0).
ppu [Observer, Turtle]
Lifts up the plot pen, so that it plots points individually (not connected).
ppxcor [Observer, Turtle]
Returns the x-value of the current plot pen.
ppycor [Observer, Turtle]
Returns the y-value of the current plot pen.
setplot-title name
[Observer, Turtle]
Sets the title of the plot to be name
.
setplot-xlabel label
[Observer, Turtle]
Sets the label of the x-axis of the graph to label
.
setplot-xmax value
[Observer, Turtle]
Sets the maximum value of the x-axis to be value
.
setplot-xmin value
[Observer, Turtle]
Sets the minimum value of the x-axis to be value
.
setplot-xrange value1 value2
[Observer, Turtle]
Sets the minimum value of the xy-axis to be value1
, and the maximum
value of the x-axis to be value2
.
setplot-ylabel label
[Observer, Turtle]
Sets the label of the y-axis of the graph to label
.
setplot-ymax value
[Observer, Turtle]
Sets the maximum value of the y-axis to be value
.
setplot-ymin value
[Observer, Turtle]
Sets the minimum value of the y-axis to be value
.
setplot-yrange value1 value2
[Observer, Turtle]
Sets the minimum value of the y-axis to be value1
, and the maximum
value of the y-axis to be value2
.
setppc color (or number)
[Observer, Turtle]
Sets the color of the current plot pen to be color
.
viewplot, view-plot [Observer, Turtle]
Opens the Plot Window.