Created
July 20, 2012 10:37
-
-
Save dmcdougall/3150091 to your computer and use it in GitHub Desktop.
Plot lots of graphs with different colours
This file contains hidden or 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 * | |
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