neuralib.plot.plot.diag_heatmap

neuralib.plot.plot.diag_heatmap(x, y, cmap='gist_earth', *, grid_xy=(100j, 100j), extent=None, scatter_kws=None, imshow_kws=None, ax=None)[source]

Scatter plot with an overlaid kernel density heatmap

Parameters:
  • x (ndarray[tuple[Any, ...], dtype[Any]] | Sequence[Any] | pd.Series | pl.Series) – Numerical array. Array[float, N]

  • y (ndarray[tuple[Any, ...], dtype[Any]] | Sequence[Any] | pd.Series | pl.Series) – Numerical array. Array[float, N]

  • cmap (str) – Colormap used for the heatmap

  • grid_xy (tuple[complex, complex]) – Grid specification for generating the heatmap

  • extent (tuple[float, float, float, float] | None) – extent for the ax.imshow()

  • scatter_kws (dict | None) – Keyword arguments passed to ax.scatter()

  • imshow_kws (dict | None) – Keyword arguments passed to ax.imshow()

  • ax (Axes | None) – Axes

Returns:

Return type:

None