You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Marginal histograms ignore z/histfunc in density_heatmap/density_contour #5704
Related to #3521 (closed as stale in 2024, reopening as a fresh issue per maintainer request).
For 2D histograms and contour plots, marginal histograms (marginal_x/marginal_y="histogram") always show raw bin counts, regardless of the z value and histfunc passed to density_heatmap/density_contour. The main plot correctly aggregates z via histfunc, but the marginal subplots do not.
Expected: the marginal histograms show the sum of total_bill per bin, matching the main heatmap.
Actual: the marginal histograms show raw row counts per bin.
I have a fix ready and will open a PR referencing this issue.
Activity
robertclaus commentedon Aug 17, 2026
@lucasjamar thanks for reporting and opening the PR!