Skip to content

Instantly share code, notes, and snippets.

@ericmjonas
Created July 15, 2009 03:07
Show Gist options
  • Save ericmjonas/147412 to your computer and use it in GitHub Desktop.
Save ericmjonas/147412 to your computer and use it in GitHub Desktop.
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
num_lines = 3
for n in range(0, num_lines):
print "Printing line %d" %(n+1)
x = range(0, 100)
y = (ones(100)*(n+1))
plt.plot(x, y)
plt.axis([0, 100, 0.5, 3.5])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment