Created
March 26, 2013 12:26
-
-
Save aejh/5245008 to your computer and use it in GitHub Desktop.
Simple matplotlib (pylab) example.
This file contains 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
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