

Discover more from Daily Dose of Data Science
High-quality insights on Data Science and Python, along with best practices — shared daily.
Get a free 550+ page data science PDF guide and 450+ practice questions notebook.
Over 50,000 subscribers
Continue reading
Python One-Liner To Create Sketchy Hand-drawn Plots
xkcd comic is known for its informal and humorous style, as well as its stick figures and simple drawings.
Creating such visually appealing hand-drawn plots is pretty simple using matplotlib. Just indent the code in a 𝐩𝐥𝐭.𝐱𝐤𝐜𝐝() context to display them in comic style.
Do note that this style is just used to improve the aesthetics of a plot through hand-drawn effects. However, it is not recommended for formal presentations, publications, etc.
Read more: Docs.
Share this post on LinkedIn: Post Link.
Find the code for my tips here: GitHub.
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.