pyrfu.plot.pl_scatter_matrix module#

pyrfu.plot.pl_scatter_matrix.pl_scatter_matrix(inp1, inp2: DataArray | None = None, pdf: bool = False, cmap: str = 'jet')[source]#

Produces a scatter plot of each components of field inp1 with respect to every component of field inp2. If pdf is set to True, the scatter plot becomes a 2d histogram.

Parameters:
  • inp1 (xarray.DataArray) – First time series (x-axis).

  • inp2 (xarray.DataArray) – Second time series (y-axis).

  • pdf (bool, Optional) – Flag to plot the 2d histogram. If False the figure is a scatter plot. If True the figure is a 2d histogram.

  • cmap (str, Optional) – Colormap. Default : “jet”

Returns:

  • fig (matplotlib.pyplot.figure) – Figure with time series plots.

  • axs (matplotlib.axes._subplots.AxesSubplot) – Axes.

  • caxs (matplotlib.pyplot.colorbar) – Only if pdf is True