Skip to content

Instantly share code, notes, and snippets.

@dmcdougall
Created July 20, 2012 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmcdougall/3150091 to your computer and use it in GitHub Desktop.
Save dmcdougall/3150091 to your computer and use it in GitHub Desktop.
Plot lots of graphs with different colours
from pylab import *
import matplotlib.cm as cm
x = linspace(0, 2*pi, num=100, endpoint=True)
for i in range(1, 10):
plot(x, sin(x + pi*i/10.0), color=cm.jet(i/10.0))
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment