ScatterPlot

Class for drawing a scatter plot.

Members

Functions

pointColor
Color pointColor()

The color of each point on the plot.

pointColor
This pointColor(Color newColor)

Setter.

pointSize
int pointSize()

The size of a point. (Default 10).

pointSize
This pointSize(int newSize)

Setter

pointSymbol
char pointSymbol()

The symbol that should be used on the plot. x and o work pretty well. The default is x.

pointSymbol
This pointSymbol(char newSymbol)

Setter

Static functions

opCall
ScatterPlot opCall(R1 x, R2 y)

Factory method for creating a ScatterPlot. x and y must both be input ranges of the same length, with elements implicitly convertible to doubles. Note that they are copied inside the factory, so changes to the original ranges after calling this factory will not affect the plot.

opCall
ScatterPlot opCall(R y)

Convenience factory that produces a ScatterPlot with a default X axis numbered 1, 2, ..., N where N is the number of points. Mostly useful for quick and dirty plots.

Inherited Members

From Plot

hasLegend
bool hasLegend()

Returns true if this plot type supports legends, otherwise false.

toFigure
Figure toFigure()

Convenience method that instantiates a Figure object with this plot. Useful for creating single-plot figures w/o a lot of boilerplate.

toLabeledFigure
Figure toLabeledFigure()

Instantiates a Figure object with this plot and also places the default axes and tick labeling and title for the plot type, if any, on the Figure. If a plot type has no default labeling, simply forwards to toFigure().

leftMost
double leftMost()

The leftmost point on the plot.

rightMost
double rightMost()

The rightmost point on the plot.

topMost
double topMost()

The topmost point on the plot.

bottomMost
double bottomMost()

The bottommost point on the plot.

legendText
string legendText()
legendText
This legendText(string newText)

Meta