Plotting (Printable)

clearplot, clear-plot [Observer, Turtle]

Clears everything drawn by all plot pens, and resets all pens to (0, 0).

clearplots [Observer, Turtle]

Resets the title of all of the graphs to "Plot Window". Resets the axis labels to each span 0 to 1000. Clears everything drawn by all plot pens, and resets all pens to (0, 0) and their original colors.

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.

plotxy `x-value y-value` [Observer, Turtle]

Plots a point at the location (x-value, y-value). This procedure is used for X-Y plots and scatterplots.

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.