Package smile.plot.swing
Class Grid
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Plot
smile.plot.swing.Grid
A 2D grid plot.
-
Constructor Details
-
Grid
Constructor.- Parameters:
data
- an m x n x 2 array which are coordinates of m x n grid.
-
-
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
Creates a grid with black lines.- Parameters:
data
- an m x n x 2 array which are coordinates of m x n grid.
-