clvkit.plotting.plot_clv#
- plot_clv(result, *, ax=None, ax_kwargs=None, scatter_kwargs=None, curve_levels=4, levels=None, cmap='viridis', colorbar=True, vmin=None, vmax=None, title=None, currency='$')[source]#
Show how discounted transactions and spend make up each CLV.
The dashed lines are equal-CLV curves, drawn at round money levels so a reader traces “everyone on this line is worth about the same” rather than decoding a percentile.
currencyis the symbol on the axes and labels; it does not convert anything — the numbers are whatever unitexpected_spendalready carries.Every knob is optional and falls back to a sensible default when left as
None:levels— the CLV values the curves sit at. Default:curve_levelsround money levels spread across the bulk of the distribution.vmin/vmax— the colour scale. Default:0and the 95th percentile of CLV, so a handful of whales don’t wash the ramp out.
Marker styling (size, alpha, edge colour, …) goes through
scatter_kwargsrather than loose**kwargs, so the signature stays fully typed.