Constructor and Description |
---|
StringScatterPlot()
Construct an empty scatter plot.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataPoint(double x,
double y)
Add new point to put.
|
String |
toString(int cols,
int rows,
boolean xlabels,
boolean ylabels)
Create a multiline representation of the given plot.
|
public void addDataPoint(double x, double y)
x
- X coordinate of the point to addy
- Y coordinate of the point to addpublic String toString(int cols, int rows, boolean xlabels, boolean ylabels)
cols
- Character columns occupiedrows
- Rows occupiedxlabels
- Show min/max X axis values (occupies bottom row)ylabels
- Shpw min/max Y axis values (occupies