environmentaltools.graphics.joint_plot

environmentaltools.graphics.joint_plot(data: DataFrame, varx: str, vary: str, ax=None)[source]

Plot joint probability distribution of two variables.

Creates a joint plot with marginal distributions using seaborn to visualize the bivariate relationship and individual distributions.

Parameters:
  • data (pd.DataFrame) – Time series containing both variables.

  • varx (str) – Name of variable for x-axis.

  • vary (str) – Name of variable for y-axis.

  • ax (matplotlib.axes.Axes, optional) – Axis for the plot. Creates new if None. Defaults to None.

Returns:

The axis with the plot.

Return type:

matplotlib.axes.Axes