Discover more from Daily Dose of Data Science
An Underrated Technique To Improve Your Data Visualizations
Always keep the viewer in mind.
At times, ensuring that your plot conveys the right message may require you to provide additional context. Yet, augmenting extra plots may clutter your whole visualization.
One great way to provide extra info is by adding text annotations to a plot.
In matplotlib, you can use 𝐚𝐧𝐧𝐨𝐭𝐚𝐭𝐞(). It adds explanatory texts to your plot, which lets you guide a viewer's attention to specific areas and aid their understanding.
Find more info here: Matplotlib docs.
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: Post Link.
👉 If you liked this daily tip, do leave a heart react 🤍.
👉 If you love reading this newsletter, feel free to share it with friends!
Find the code for my tips here: GitHub.