A Simple Trick That Significantly Improves The Quality of Matplotlib Plots
A Simple Trick That Significantly Improves The Quality of Matplotlib Plots
SHARE
about:blank 1/4
5/25/23, 10:05 AM Yahoo Mail - A Simple Trick That Significantly Improves The Quality of Matplotlib Plots
Matplotlib plots often appear dull and blurry, especially when scaled or
zoomed. Yet, here's a simple trick to significantly improve their quality.
Instead, always render your plot as a scalable vector graphic (SVG). As the
name suggests, they can be scaled without compromising the plot's quality.
The following code lets you change the render format to SVG. If the
difference is not apparent in the image above, I would recommend trying it
about:blank 2/4
5/25/23, 10:05 AM Yahoo Mail - A Simple Trick That Significantly Improves The Quality of Matplotlib Plots
P.S. If there’s a chance that you don’t know what is being depicted in the bar
plot above, check out this YouTube video by Numberphile.
👉 If you love reading this newsletter, feel free to share it with friends!
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.
about:blank 3/4
5/25/23, 10:05 AM Yahoo Mail - A Simple Trick That Significantly Improves The Quality of Matplotlib Plots
about:blank 4/4