While creating data visualizations, there are often certain parts that are particularly important.
Yet, they may not be immediately obvious to the viewer.
A good data storyteller always ensures that the plot guides the viewer’s attention to these key areas.
One great (yet underrated) way is to zoom in on specific regions of interest in a plot, as depicted below.
In contrast to the usual plot, the other plot guides the viewer’s attention to a specific area of interest.
Such efforts always ensure that the plot indeed communicates what we intend it to depict — even if the plot’s creator is not present at that time.
In matplotlib, you can do so using 𝐢𝐧𝐝𝐢𝐜𝐚𝐭𝐞_𝐢𝐧𝐬𝐞𝐭_𝐳𝐨𝐨𝐦(). It adds an indicator box, which can be zoomed-in for better clarity.
👉 Over to you: What are some other underrated ways to improve default plots?
👉 If you liked this post, don’t forget to leave a like ❤️. It helps more people discover this newsletter on Substack and tells me that you appreciate reading these daily insights. The button is located towards the bottom of this email.
Thanks for reading!
Latest full articles
If you’re not a full subscriber, here’s what you missed last month:
Formulating and Implementing the t-SNE Algorithm From Scratch.
Generalized Linear Models (GLMs): The Supercharged Linear Regression.
Gaussian Mixture Models (GMMs): The Flexible Twin of KMeans.
Where Did The Assumptions of Linear Regression Originate From?
To receive all full articles and support the Daily Dose of Data Science, consider subscribing:
👉 Tell the world what makes this newsletter special for you by leaving a review here :)
👉 If you love reading this newsletter, feel free to share it with friends!