Package smile.plot.swing
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 TypeMethodDescriptioncanvas()Returns a canvas of the plot.abstract double[]Returns the lower bound of data.abstract double[]Returns the upper bound of data.legends()Returns the optional name of shape, which will be used to draw a legend outside the box.toolbar()Returns an optional list of components in tool bar to control the plot.tooltip(double[] coord) Returns a optional tool tip for the object at given coordinates.
-
Constructor Details
-
Plot
public Plot()Constructor. -
Plot
Constructor.
-
-
Method Details
-
getLowerBound
public abstract double[] getLowerBound()Returns the lower bound of data. -
getUpperBound
public abstract double[] getUpperBound()Returns the upper bound of data. -
canvas
Returns a canvas of the plot. -
legends
Returns the optional name of shape, which will be used to draw a legend outside the box. -
tooltip
Returns a optional tool tip for the object at given coordinates.- Parameters:
coord- the logical coordinates of current mouse position.- Returns:
- a string if an object with label close to the given coordinates.
-
toolbar
Returns an optional list of components in tool bar to control the plot.- Returns:
- an optional list of toolbar components.
-