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.color- the color of grid.
-
-
Method Details
-
paint
-
getLowerBound
public double[] getLowerBound()Description copied from class:PlotReturns the lower bound of data.- Specified by:
getLowerBoundin classPlot- Returns:
- the lower bound of data.
-
getUpperBound
public double[] getUpperBound()Description copied from class:PlotReturns the upper bound of data.- Specified by:
getUpperBoundin classPlot- Returns:
- the upper bound of data.
-
of
Creates a grid with black lines.- Parameters:
data- an m x n x 2 array which are coordinates of m x n grid.- Returns:
- a grid with black lines.
-