Package es.upm.etsisi.cf4j.util.plot
Class ColumnPlot
- java.lang.Object
-
- es.upm.etsisi.cf4j.util.plot.Plot
-
- es.upm.etsisi.cf4j.util.plot.ColumnPlot
-
public class ColumnPlot extends Plot
Implements a column plot.
-
-
Constructor Summary
Constructors Constructor Description ColumnPlot(String xLabel, String yLabel)
Creates a new ColumnPlot
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnPlot
addColumn(String name, double value)
Adds a column to the plotprotected 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 dataprotected de.erichseifert.gral.plots.AbstractPlot
getGralPlot()
Gets an AbstractPlot using GRAL-
Methods inherited from class es.upm.etsisi.cf4j.util.plot.Plot
draw, exportData, exportData, exportData, exportData, exportPlot, printData, printData, printData, toString, toString, toString
-
-
-
-
Method Detail
-
addColumn
public ColumnPlot addColumn(String name, double value)
Adds a column to the plot- Parameters:
name
- Column namevalue
- Column value- Returns:
- Self ColumnPlot instance
-
getDataHeaders
protected String[] getDataHeaders()
Description copied from class:Plot
Returns an String array with the headers of the plot's data- Specified by:
getDataHeaders
in classPlot
- Returns:
- Headers of the plot's data
-
getDataContent
protected String[][] getDataContent(String xAxisTicksFormat, String yAxisTicksFormat)
Description copied from class:Plot
Returns an String matrix with the content of the plot's data. First dimension denotes the row and second dimension denotes the column that must be correlated with the header returned by getDataHeaders().- Specified by:
getDataContent
in classPlot
- Parameters:
xAxisTicksFormat
- Number format for the values of the x axisyAxisTicksFormat
- Number format for the values of the x axis- Returns:
- String matrix with the content of the plot's data
-
getGralPlot
protected de.erichseifert.gral.plots.AbstractPlot getGralPlot()
Description copied from class:Plot
Gets an AbstractPlot using GRAL- Specified by:
getGralPlot
in classPlot
- Returns:
- GRAL's AbstractPlot
-
-