Discover more from Daily Dose of Data Science
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.
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 (250+ pages) with 200+ tips.
Find the code for my tips here: GitHub.