Class ScatterPlotMatrix

java.lang.Object
io.deephaven.plot.FigureImpl
io.deephaven.plot.composite.ScatterPlotMatrix
All Implemented Interfaces:
Axes, Axis, BaseFigure, Chart, CategoryDataSeries, CategoryErrorBarDataSeries, DataSeries, IntervalXYDataSeries, MultiSeries, OHLCDataSeries, XYDataSeries, XYDataSeriesFunction, XYErrorBarDataSeries, PlotExceptionCause, Figure, Series, Serializable

public class ScatterPlotMatrix extends FigureImpl implements PlotExceptionCause
Creates a scatter plot matrix by graphing each variable against every other variable.
See Also:
  • Method Details

    • getPlotInfo

      public PlotInfo getPlotInfo()
      Specified by:
      getPlotInfo in interface PlotExceptionCause
    • pointSize

      public ScatterPlotMatrix pointSize(int pointSize)
      Sets the default point size of all plots in this ScatterPlotMatrix.
      Specified by:
      pointSize in interface DataSeries
      Specified by:
      pointSize in interface Figure
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSize - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(long pointSize)
      Sets the default point size of all plots in this ScatterPlotMatrix.
      Specified by:
      pointSize in interface DataSeries
      Specified by:
      pointSize in interface Figure
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSize - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(double pointSize)
      Sets the default point size of all plots in this ScatterPlotMatrix.
      Specified by:
      pointSize in interface DataSeries
      Specified by:
      pointSize in interface Figure
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSize - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(Number pointSize)
      Sets the default point size of all plots in this ScatterPlotMatrix.
      Specified by:
      pointSize in interface DataSeries
      Specified by:
      pointSize in interface Figure
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSize - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int plotIndex, int factor)
      Sets the point size of the plot at index plotIndex. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Parameters:
      plotIndex - index
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int plotIndex, long factor)
      Sets the point size of the plot at index plotIndex. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Parameters:
      plotIndex - index
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int plotIndex, double factor)
      Sets the point size of the plot at index plotIndex. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Parameters:
      plotIndex - index
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int plotIndex, Number factor)
      Sets the point size of the plot at index plotIndex. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Parameters:
      plotIndex - index
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int row, int col, int factor)
      Sets the point size of the plot at index plotIndex. Row and column numbers start at 0 in the upper left hand corner of the grid and increase going top to bottom and left to right respectively. For example, in a 2x2 ScatterPlotMatrix the coordinates would be [(0,0), (0,1)] [(1,0), (1,1)]
      Parameters:
      row - row index of this Figure's grid
      col - column index of this Figure's grid
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int row, int col, long factor)
      Sets the point size of the plot at index plotIndex. Row and column numbers start at 0 in the upper left hand corner of the grid and increase going top to bottom and left to right respectively. For example, in a 2x2 ScatterPlotMatrix the coordinates would be [(0,0), (0,1)] [(1,0), (1,1)]
      Parameters:
      row - row index of this Figure's grid
      col - column index of this Figure's grid
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int row, int col, double factor)
      Sets the point size of the plot at index plotIndex. Row and column numbers start at 0 in the upper left hand corner of the grid and increase going top to bottom and left to right respectively. For example, in a 2x2 ScatterPlotMatrix the coordinates would be [(0,0), (0,1)] [(1,0), (1,1)]
      Parameters:
      row - row index of this Figure's grid
      col - column index of this Figure's grid
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(int row, int col, Number factor)
      Sets the point size of the plot at index plotIndex. Row and column numbers start at 0 in the upper left hand corner of the grid and increase going top to bottom and left to right respectively. For example, in a 2x2 ScatterPlotMatrix the coordinates would be [(0,0), (0,1)] [(1,0), (1,1)]
      Parameters:
      row - row index of this Figure's grid
      col - column index of this Figure's grid
      factor - point size
      Returns:
      this ScatterPlotMatrix
    • pointSize

      public ScatterPlotMatrix pointSize(IndexableData<Double> pointSizes)
      Sets the point size of plot i as the factor in factors at index i. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Specified by:
      pointSize in interface Figure
      Specified by:
      pointSize in interface XYDataSeries
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSizes - point sizes
      Returns:
      this ScatterPlotMatrix
      Throws:
      RequirementFailure - factors must not be null. The number of factors must be equal to the number of plots.
    • pointSize

      public ScatterPlotMatrix pointSize(int... pointSizes)
      Sets the point size of plot i as the factor in factors at index i. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Specified by:
      pointSize in interface Figure
      Specified by:
      pointSize in interface XYDataSeries
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSizes - point sizes
      Returns:
      this ScatterPlotMatrix
      Throws:
      RequirementFailure - factors must not be null. The number of factors must be equal to the number of plots.
    • pointSize

      public ScatterPlotMatrix pointSize(long... pointSizes)
      Sets the point size of plot i as the factor in factors at index i. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Specified by:
      pointSize in interface Figure
      Specified by:
      pointSize in interface XYDataSeries
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSizes - point sizes
      Returns:
      this ScatterPlotMatrix
      Throws:
      RequirementFailure - factors must not be null. The number of factors must be equal to the number of plots.
    • pointSize

      public ScatterPlotMatrix pointSize(double... pointSizes)
      Sets the point size of plot i as the factor in factors at index i. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Specified by:
      pointSize in interface Figure
      Specified by:
      pointSize in interface XYDataSeries
      Overrides:
      pointSize in class FigureImpl
      Parameters:
      pointSizes - point sizes
      Returns:
      this ScatterPlotMatrix
      Throws:
      RequirementFailure - factors must not be null. The number of factors must be equal to the number of plots.
    • pointSize

      public <T extends Number> ScatterPlotMatrix pointSize(T[] pointSizes)
      Sets the point size of plot i as the factor in factors at index i. The index starts at 0 in the upper left hand corner of the grid and increases going left to right, top to bottom. E.g. for a 2x2 ScatterPlotMatrix, the indices would be [0, 1] [2, 3]
      Specified by:
      pointSize in interface Figure
      Specified by:
      pointSize in interface XYDataSeries
      Overrides:
      pointSize in class FigureImpl
      Type Parameters:
      T - data type of the factors
      Parameters:
      pointSizes - point sizes
      Returns:
      this ScatterPlotMatrix
      Throws:
      RequirementFailure - factors must not be null. The number of factors must be equal to the number of plots.
    • scatterPlotMatrix

      public static <T extends Number> ScatterPlotMatrix scatterPlotMatrix(T[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Type Parameters:
      T - data type of the variables
      Parameters:
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix where variable names are assigned as x1, x2, ... in order.
    • scatterPlotMatrix

      public static <T extends Number> ScatterPlotMatrix scatterPlotMatrix(String[] variableNames, T[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Type Parameters:
      T - data type of the variables
      Parameters:
      variableNames - variable names
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(int[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix where variable names are assigned as x1, x2, ... in order.
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(String[] variableNames, int[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variableNames - variable names
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(long[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix where variable names are assigned as x1, x2, ... in order.
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(String[] variableNames, long[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variableNames - variable names
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(float[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix where variable names are assigned as x1, x2, ... in order.
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(String[] variableNames, float[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variableNames - variable names
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(double[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix where variable names are assigned as x1, x2, ... in order.
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(String[] variableNames, double[]... variables)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      variableNames - variable names
      variables - data to plot
      Returns:
      new Figure containing the scatter plot matrix
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(Table t, String... columns)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      t - table
      columns - data to plot
      Returns:
      new Figure containing the scatter plot matrix
    • scatterPlotMatrix

      public static ScatterPlotMatrix scatterPlotMatrix(SelectableDataSet sds, String... columns)
      Creates a scatter plot matrix by graphing each variable against every other variable.
      Parameters:
      sds - selectable data set (e.g. OneClick filterable table)
      columns - data to plot
      Returns:
      new Figure containing the scatter plot matrix