Constructor and Description |
---|
ScatterPlot(double[][] data)
Constructor.
|
ScatterPlot(double[][] data,
char legend)
Constructor.
|
ScatterPlot(double[][] data,
char legend,
java.awt.Color color)
Constructor.
|
ScatterPlot(double[][] data,
java.awt.Color color)
Constructor.
|
ScatterPlot(double[][] data,
int[] y,
char[] legends)
Constructor.
|
ScatterPlot(double[][] data,
int[] y,
char[] legends,
java.awt.Color color)
Constructor.
|
ScatterPlot(double[][] data,
int[] y,
char[] legends,
java.awt.Color[] palette)
Constructor.
|
ScatterPlot(double[][] data,
int[] y,
char legend,
java.awt.Color[] palette)
Constructor.
|
ScatterPlot(double[][] data,
int[] y,
java.awt.Color[] palette)
Constructor.
|
ScatterPlot(double[][] data,
java.lang.String[] labels)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
char |
getLegend()
Get the legend of points.
|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
static PlotCanvas |
plot(double[]... data)
Create a plot canvas with the scatter plot of given data.
|
static PlotCanvas |
plot(double[][] data,
char legend)
Create a plot canvas with the scatter plot of given data with specific legend.
|
static PlotCanvas |
plot(double[][] data,
char legend,
java.awt.Color color)
Create a plot canvas with the scatter plot of given data with specific legend and color.
|
static PlotCanvas |
plot(double[][] data,
java.awt.Color color)
Create a plot canvas with the scatter plot of given data and specific color.
|
static PlotCanvas |
plot(double[][] data,
int[] y,
char[] legend,
java.awt.Color[] palette)
Create a plot canvas with the scatter plot of given data with specific legend and color.
|
static PlotCanvas |
plot(double[][] data,
int[] y,
char legend,
java.awt.Color[] palette)
Create a plot canvas with the scatter plot of given data with specific legend and color.
|
static PlotCanvas |
plot(double[][] data,
java.lang.String[] labels)
Create a plot canvas with the scatter plot of given data.
|
static PlotCanvas |
plot(java.lang.String id,
double[]... data)
Create a plot canvas with the scatter plot of given data.
|
static PlotCanvas |
plot(java.lang.String id,
double[][] data,
char legend)
Create a plot canvas with the scatter plot of given data with specific legend.
|
static PlotCanvas |
plot(java.lang.String id,
double[][] data,
char legend,
java.awt.Color color)
Create a plot canvas with the scatter plot of given data with specific legend and color.
|
static PlotCanvas |
plot(java.lang.String id,
double[][] data,
java.awt.Color color)
Create a plot canvas with the scatter plot of given data and specific color.
|
static PlotCanvas |
plot(java.lang.String id,
double[][] data,
int[] y,
char[] legend,
java.awt.Color[] palette)
Create a plot canvas with the scatter plot of given data with specific legend and color.
|
static PlotCanvas |
plot(java.lang.String id,
double[][] data,
int[] y,
char legend,
java.awt.Color[] palette)
Create a plot canvas with the scatter plot of given data with specific legend and color.
|
static PlotCanvas |
plot(java.lang.String id,
double[][] data,
java.lang.String[] labels)
Create a plot canvas with the scatter plot of given data.
|
ScatterPlot |
setLegend(char legend)
Set the legend of points.
|
getID, getToolBar, getToolTip, setID
public ScatterPlot(double[][] data)
public ScatterPlot(double[][] data, java.lang.String[] labels)
public ScatterPlot(double[][] data, char legend)
public ScatterPlot(double[][] data, java.awt.Color color)
public ScatterPlot(double[][] data, char legend, java.awt.Color color)
public ScatterPlot(double[][] data, int[] y, char[] legends)
data
- The array of data to plot. The elements should be of dimension 2 or 3.y
- The class label of each data point of size n, where n is the size of data.legends
- The legend of each class, of size k, where k is the amount of unique values in y.public ScatterPlot(double[][] data, int[] y, char[] legends, java.awt.Color color)
data
- The array of data to plot. The elements should be of dimension 2 or 3.y
- The class label of each data point of size n, where n is the size of data.legends
- The legend of each class, of size k, where k is the amount of unique values in y.color
- The color of all data points.public ScatterPlot(double[][] data, int[] y, java.awt.Color[] palette)
data
- The array of data to plot. The elements should be of dimension 2 or 3.y
- The class label of each data point of size n, where n is the size of data.palette
- The color of each class, of size k, where k is the amount of unique values in y.public ScatterPlot(double[][] data, int[] y, char legend, java.awt.Color[] palette)
data
- The array of data to plot. The elements should be of dimension 2 or 3.y
- The class label of each data point of size n, where n is the size of data.legend
- The legend of all data points.palette
- The color of each class, of size k, where k is the amount of unique values in y.public ScatterPlot(double[][] data, int[] y, char[] legends, java.awt.Color[] palette)
data
- The array of data to plot. The elements should be of dimension 2 or 3.y
- The class label of each data point of size n, where n is the size of data.legends
- The legend of each class, of size k, where k is the amount of unique values in y.palette
- The color of each class, of size k, where k is the amount of unique values in y.public void paint(Graphics g)
Shape
public ScatterPlot setLegend(char legend)
public char getLegend()
public static PlotCanvas plot(double[]... data)
data
- a n-by-2 or n-by-3 matrix that describes coordinates of n points.public static PlotCanvas plot(java.lang.String id, double[]... data)
id
- the id of the plot.data
- a n-by-2 or n-by-3 matrix that describes coordinates of n points.public static PlotCanvas plot(double[][] data, java.lang.String[] labels)
data
- a n-by-2 or n-by-3 matrix that describes coordinates of n points.labels
- labels of points.public static PlotCanvas plot(java.lang.String id, double[][] data, java.lang.String[] labels)
id
- the id of the plot.data
- a n-by-2 or n-by-3 matrix that describes coordinates of n points.labels
- labels of points.public static PlotCanvas plot(double[][] data, java.awt.Color color)
data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.color
- the color used to draw points.public static PlotCanvas plot(java.lang.String id, double[][] data, java.awt.Color color)
id
- the id of the plot.data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.color
- the color used to draw points.public static PlotCanvas plot(double[][] data, char legend)
data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.legend
- the legend used to draw points.
public static PlotCanvas plot(java.lang.String id, double[][] data, char legend)
id
- the id of the plot.data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.legend
- the legend used to draw points.
public static PlotCanvas plot(double[][] data, char legend, java.awt.Color color)
data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.color
- the color used to draw points.legend
- the legend used to draw points.
public static PlotCanvas plot(java.lang.String id, double[][] data, char legend, java.awt.Color color)
id
- the id of the plot.data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.color
- the color used to draw points.legend
- the legend used to draw points.
public static PlotCanvas plot(double[][] data, int[] y, char legend, java.awt.Color[] palette)
data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.y
- the class labels of data.palette
- the colors for each class.legend
- the legend used to draw points.
public static PlotCanvas plot(java.lang.String id, double[][] data, int[] y, char legend, java.awt.Color[] palette)
id
- the id of the plot.data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.y
- the class labels of data.palette
- the colors for each class.legend
- the legend used to draw points.
public static PlotCanvas plot(double[][] data, int[] y, char[] legend, java.awt.Color[] palette)
data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.y
- the class labels of data.palette
- the colors for each class.legend
- the legend used to draw points.
public static PlotCanvas plot(java.lang.String id, double[][] data, int[] y, char[] legend, java.awt.Color[] palette)
id
- the id of the plot.data
- a n-by-2 or n-by-3 matrix that describes coordinates of points.y
- the class labels of data.palette
- the colors for each class.legend
- the legend used to draw points.