Documentation of 'smile.plot.SparseMatrixPlot' Java class
SparseMatrixPlot
smile.plot

Class SparseMatrixPlot



  • public class SparseMatrixPlot
    extends Plot
    A graphical representation of sparse matrix data. Optionally, the values in the matrix can be represented as colors.
    • Constructor Detail

      • SparseMatrixPlot

        public SparseMatrixPlot(SparseMatrix sparse)
        Constructor. Use blue color for nonzero entries.
      • SparseMatrixPlot

        public SparseMatrixPlot(SparseMatrix sparse,
                                java.awt.Color color)
        Constructor.
      • SparseMatrixPlot

        public SparseMatrixPlot(SparseMatrix sparse,
                                int k)
        Constructor. Use jet color palette.
        Parameters:
        k - the number of colors in the palette.
      • SparseMatrixPlot

        public SparseMatrixPlot(SparseMatrix sparse,
                                java.awt.Color[] palette)
        Constructor.
        Parameters:
        palette - the color palette.
    • Method Detail

      • paint

        public void paint(Graphics g)
        Description copied from class: Shape
        Draw the component with given graphics object.
        Specified by:
        paint in class Shape
      • plot

        public static PlotCanvas plot(SparseMatrix sparse)
        Create a sparse matrix plot canvas.
        Parameters:
        sparse - a sparse matrix.
      • plot

        public static PlotCanvas plot(SparseMatrix sparse,
                                      java.awt.Color color)
        Create a sparse matrix plot canvas.
        Parameters:
        sparse - a sparse matrix.
      • plot

        public static PlotCanvas plot(SparseMatrix sparse,
                                      java.awt.Color[] palette)
        Create a sparse matrix plot canvas.
        Parameters:
        sparse - a sparse matrix.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.