Skip to content

Instantly share code, notes, and snippets.

@aejh
Created March 26, 2013 12:26
Show Gist options
  • Save aejh/5245008 to your computer and use it in GitHub Desktop.
Save aejh/5245008 to your computer and use it in GitHub Desktop.
Simple matplotlib (pylab) example.
from pylab import figure, show
fig = figure()
ax = fig.add_subplot(111)
x = range(0,20)
#Silly XOR example
for i in range(10):
ax.plot(x, [_^i for _ in x])
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment