Daily Dose of Data Science

Share this post

A Simple Trick That Will Make Heatmaps More Elegant

www.blog.dailydoseofds.com

A Simple Trick That Will Make Heatmaps More Elegant

Embedding the size component to a heatmap.

Avi Chawla
Mar 24, 2023
11
Share

Heatmaps often make data analysis much easier. Yet, they can be further enriched with a simple modification.

A traditional heatmap represents the values using a color scale. Yet, mapping the cell color to numbers is still challenging.

Embedding a size component can be extremely helpful in such cases. In essence, the bigger the size, the higher the absolute value.

This is especially useful to make heatmaps cleaner, as many values nearer to zero will immediately shrink.

In fact, you can represent the size with any other shape. Below, I created the same heatmap using a circle instead:

Find the code for this post here: GitHub.

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new about Python and Data Science every day.

👉 Read what others are saying about this post on LinkedIn and Twitter.

👉 If you liked this post, leave a heart react 🤍.

👉 If you love reading this newsletter, feel free to share it with friends!

Share Daily Dose of Data Science


I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn and Twitter.

11
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing