Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created May 26, 2021 13:35
Show Gist options
  • Save AayushSameerShah/178c66978d80bf9a8ad20480c03efbd5 to your computer and use it in GitHub Desktop.
Save AayushSameerShah/178c66978d80bf9a8ad20480c03efbd5 to your computer and use it in GitHub Desktop.
How to plot wiggly lines in matplotlib
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()
@AayushSameerShah
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment