public class EmpiricalChart extends XYChart
EmpiricalChart class is the simplest way to produce empirical
plots only. Each EmpiricalChart object is linked with an
EmpiricalSeriesCollection
data set.| Constructor and Description |
|---|
EmpiricalChart()
Initializes a new EmpiricalChart instance with an empty data set.
|
EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
double[]... data)
Initializes a new EmpiricalChart instance with data data.
|
EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
double[] data,
int numPoints)
Initializes a new EmpiricalChart instance with a set of points
data.
|
EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
DoubleArrayList... data)
Similar to the above constructor, but with DoubleArrayList.
|
EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
XYSeriesCollection data)
Initializes a new EmpiricalChart instance with data data.
|
| Modifier and Type | Method and Description |
|---|---|
EmpiricalSeriesCollection |
getSeriesCollection()
Returns the chart's dataset.
|
void |
setSeriesCollection(EmpiricalSeriesCollection dataset)
Links a new dataset to the current chart.
|
void |
setTicksSynchro(int s)
Synchronizes x-axis ticks to the s-th series x-values.
|
java.lang.String |
toLatex(double width,
double height)
Exports the chart to a LATEX source code using PGF/TikZ.
|
javax.swing.JFrame |
view(int width,
int height)
Displays chart on the screen using Swing.
|
disableGrid, enableGrid, getChartMargin, getJFreeChart, getTitle, getXAxis, getYAxis, setAutoRange, setAutoRange, setAutoRange00, setChartMargin, setLatexDocFlag, setManualRange, setManualRange, setManualRange00, setprobFlag, setTitle, toLatexFilepublic EmpiricalChart()
public EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
double[]... data)
title - chart title.XLabel - Label on x-axis.YLabel - Label on y-axis.data - series of point sets.public EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
double[] data,
int numPoints)
title - chart title.XLabel - Label on x-axis.YLabel - Label on y-axis.data - series of point sets.numPoints - number of points to plotpublic EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
DoubleArrayList... data)
DoubleArrayList from the Colt library is
used to store data. The values of each observation set data[i]
must be sorted in increasing order.title - chart title.XLabel - Label on x-axis.YLabel - Label on y-axis.data - series of point sets.public EmpiricalChart(java.lang.String title,
java.lang.String XLabel,
java.lang.String YLabel,
XYSeriesCollection data)
title - chart title.XLabel - Label on x-axis.YLabel - Label on y-axis.data - series collection.public EmpiricalSeriesCollection getSeriesCollection()
public void setSeriesCollection(EmpiricalSeriesCollection dataset)
dataset - new dataset.public void setTicksSynchro(int s)
setTicksSynchro in class XYCharts - series used to define ticks.public javax.swing.JFrame view(int width,
int height)
public java.lang.String toLatex(double width,
double height)
XYChartTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.