Loading...

vastorbit.VastFrame.scatter_matrix

VastFrame.scatter_matrix(columns: Annotated[str | list[str], 'STRING representing one column or a list of columns'] | None = None, max_nb_points: int = 1000, **style_kwargs) PlottingBase | TableSample | Axes | mFigure | Figure

Draws the scatter matrix of the VastFrame.

Parameters:
  • columns (SQLColumns, optional) – List of the VastColumns names. If empty, all numerical VastColumns are used.

  • max_nb_points (int, optional) – Maximum number of points to display for each scatter plot.

  • **style_kwargs – Any optional parameter to pass to the plotting functions.

Returns:

Plotting Object.

Return type:

obj

Examples

Note

The below example is a very basic one. For other more detailed examples and customization options, please see Chart Gallery

Let’s begin by importing vastorbit.

import vastorbit as vo

Let’s also import numpy to create a dataset.

import numpy as np

We can create a variable N to fix the size:

N = 30

Let’s generate a dataset using the following data.

data = vo.VastFrame(
    {
        "x": np.random.normal(5, 1, N),
        "y": np.random.normal(8, 1.5, N),
    }
)

Below is an examples of one type of scatter_matrix plots:

  • Scatter Matrix

@suppress
vo.set_option("plotting_lib", "matplotlib")

data.scatter_matrix(columns = ["x", "y"])

See also

VastFrame.contour() : Contour Plot.
VastFrame.heatmap() : Heatmap.