Class Plot
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Plot
- Direct Known Subclasses:
BarPlot, BoxPlot, Contour, Dendrogram, Grid, Heatmap, Hexmap, Histogram3D, LinePlot, QQPlot, ScatterPlot, ScreePlot, SparseMatrixPlot, StaircasePlot, Surface, TextPlot, Wireframe
The abstract base class of plots.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfigure()Returns a figure containing the plot.abstract double[]Returns the lower bound of data.abstract double[]Returns the upper bound of data.legends()Returns the optional legend of shape.toolbar()Returns an optional list of components in toolbar to control the plot.tooltip(double[] coord) Returns an optional tooltip for the object at given coordinates.
-
Constructor Details
-
Plot
public Plot()Constructor. -
Plot
-
Plot
-
-
Method Details
-
getLowerBound
public abstract double[] getLowerBound()Returns the lower bound of data.- Returns:
- the lower bound of data.
-
getUpperBound
public abstract double[] getUpperBound()Returns the upper bound of data.- Returns:
- the upper bound of data.
-
figure
-
legends
-
tooltip
-
toolbar
Returns an optional list of components in toolbar to control the plot.- Returns:
- an optional list of toolbar components.
-