Professional Documents
Culture Documents
2D Density Chart
This section explains how to build a 2d density chart or a 2d histogram with python. Those
chart types allow to visualize the combined distribution of two quantitative variables. They can
be build with Matplotlib or Seaborn .
Then the number of observations within a particular area of the 2D space is counted and
represented with a color gradient. The shape can vary: hexagones result in a hexbin chart ,
squares in a 2d histogram . A kernel density estimate can be used to get a 2d density plots
or a contour plots
Correlation
Contact
🔥
github, send me a feedback on twitter or subscribe to the newsletter to
know when new examples are published!
Type your email... Subscribe
← Python Graph Gallery
By subscribing you agree to Substack's Terms of Use, our Privacy
Policy and our Information collection notice