Package smile.plot.swing
Class TextPlot
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Plot
smile.plot.swing.TextPlot
The scatter plot of texts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Returns the lower bound of data.double[]
Returns the upper bound of data.static TextPlot
Create a text plot.void
Draws the shape.
-
Constructor Details
-
TextPlot
Constructor.
-
-
Method Details
-
paint
Description copied from class:Shape
Draws the shape. -
getLowerBound
public double[] getLowerBound()Description copied from class:Plot
Returns the lower bound of data.- Specified by:
getLowerBound
in classPlot
-
getUpperBound
public double[] getUpperBound()Description copied from class:Plot
Returns the upper bound of data.- Specified by:
getUpperBound
in classPlot
-
of
Create a text plot.- Parameters:
texts
- the texts.coordinates
- an n-by-2 or n-by-3 matrix that are the coordinates of texts.
-