Package com.chemaxon.clustering.util
Class Util.StringScatterPlot
java.lang.Object
com.chemaxon.clustering.util.Util.StringScatterPlot
- Enclosing class:
- Util
ASCII scatter plot.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataPoint
(double x, double y) Add new point to put.toString
(int cols, int rows, boolean xlabels, boolean ylabels) Create a multiline representation of the given plot.
-
Constructor Details
-
StringScatterPlot
public StringScatterPlot()Construct an empty scatter plot.
-
-
Method Details
-
addDataPoint
public void addDataPoint(double x, double y) Add new point to put.- Parameters:
x
- X coordinate of the point to addy
- Y coordinate of the point to add
-
toString
Create a multiline representation of the given plot.- Parameters:
cols
- Character columns occupiedrows
- Rows occupiedxlabels
- Show min/max X axis values (occupies bottom row)ylabels
- Shpw min/max Y axis values (occupies- Returns:
- A String representation of the chart
-