Skip to content

Instantly share code, notes, and snippets.

@agalea91
Last active June 2, 2016 18:17
Show Gist options
  • Save agalea91/24fbaa0adf0cf292963a7ca097b1dc7f to your computer and use it in GitHub Desktop.
Save agalea91/24fbaa0adf0cf292963a7ca097b1dc7f to your computer and use it in GitHub Desktop.
python-how-to
import matplotlib.pyplot as plt
import numpy as np
plt.xkcd()
ax = plt.subplot(111)
x = np.linspace(0,4*np.pi,100)
ax.plot(x, np.sin(x)/x)
ax.annotate('Hell ya!', xy=(2, 0.5), xytext=(6, 0.7),
xycoords='data', textcoords='data', ha='right', va='bottom',
arrowprops=dict(arrowstyle='->', lw=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment