Discover more from Daily Dose of Data Science
An Underrated Technique to Improve Your Data Visualizations
Guide the viewer’s attention.
While creating data visualizations, there are often certain parts that are particularly important, and they may require some additional context.
Yet, this additional information 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.
The plot concisely provides any information needed for better interpretation.
One great (yet underrated) to provide extra info is by adding text annotations to a plot, as depicted below:
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 use 𝐚𝐧𝐧𝐨𝐭𝐚𝐭𝐞(), as depicted below:
It adds explanatory texts to your plot, which lets you guide a viewer’s attention to specific areas and aid their understanding.
Isn’t that cool?
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (550+ pages) with 320+ tips.
👉 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:
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!