public class HistogramPlot extends Plot
Constructor and Description |
---|
HistogramPlot(String xLabel,
int numBins)
Creates a new HistogramPlot
|
Modifier and Type | Method and Description |
---|---|
HistogramPlot |
addValue(double value)
Adds new value to the histogram
|
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
|
void |
printData()
Prints the plot data into the standard output
|
void |
printData(String axisTicksFormat)
Prints the plot data into the standard output
|
String |
toString() |
String |
toString(String axisTicksFormat)
Stringify the plot data
|
draw, exportData, exportData, exportData, exportData, exportPlot, printData, toString
public HistogramPlot(String xLabel, int numBins)
xLabel
- Label of the x axisnumBins
- Number of bins of the histogrampublic HistogramPlot addValue(double value)
value
- Valuepublic void printData()
Plot
public void printData(String axisTicksFormat)
Plot
public String toString(String axisTicksFormat)
Plot
protected 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.