Created
May 26, 2021 13:35
-
-
Save AayushSameerShah/178c66978d80bf9a8ad20480c03efbd5 to your computer and use it in GitHub Desktop.
How to plot wiggly lines in matplotlib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
plt.xkcd() # <-- This does the job | |
plt.figure() | |
plt.plot(np.linspace(0.7,1.42,100),[0.7]*100) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is from...
https://stackoverflow.com/questions/33707162/zigzag-or-wavy-lines-in-matplotlib