environmentaltools.graphics.dscatter

environmentaltools.graphics.dscatter(x, y, *varargin)[source]

Create density scatter plot with smoothed 2D histogram coloring.

Generates a scatter plot where point colors represent local density, computed using 2D histogram binning and smoothing.

Parameters:
  • x (array-like) – X-coordinates of data points.

  • y (array-like) – Y-coordinates of data points.

  • *varargin – Additional variable arguments (currently unused).

Note

This function uses a smoothing parameter lambda_=20 and limits bins to 200.