public class ScatterPlot extends Plot
Constructor and Description |
---|
ScatterPlot(String xLabel,
String yLabel)
Creates new ScatterPlot
|
Modifier and Type | Method and Description |
---|---|
ScatterPlot |
addPoint(double x,
double y)
Adds new point to the scatter plot
|
protected String[][] |
getDataContent(String xAxisTicksFormat,
String yAxisTicksFormat)
Returns an String matrix with the content of the plot's data.
|
protected String[] |
getDataHeaders()
Returns an String array with the headers of the plot's data
|
protected de.erichseifert.gral.plots.AbstractPlot |
getGralPlot()
Gets an AbstractPlot using GRAL
|
draw, exportData, exportData, exportData, exportData, exportPlot, printData, printData, printData, toString, toString, toString
public ScatterPlot addPoint(double x, double y)
x
- x valuey
- y valueprotected String[] getDataHeaders()
Plot
getDataHeaders
in class Plot
protected String[][] getDataContent(String xAxisTicksFormat, String yAxisTicksFormat)
Plot
getDataContent
in class Plot
xAxisTicksFormat
- Number format for the values of the x axisyAxisTicksFormat
- Number format for the values of the x axisprotected de.erichseifert.gral.plots.AbstractPlot getGralPlot()
Plot
getGralPlot
in class Plot
Copyright © 2020. All rights reserved.