Created
October 14, 2011 17:24
-
-
Save mylons/1287733 to your computer and use it in GitHub Desktop.
simple wrappers to pyplot
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
import matplotlib.pyplot as pyplot | |
def plot_list(xs, ys, clf=False, label=None): | |
if clf: | |
pyplot.clf() | |
line = pyplot.plot(xs, ps, label=name) | |
def make_plots(lists_of_x, lists_of_y): | |
#assumes they're equal length lists of lists [ [ ] ] | |
for i in xrange(lists_of_x): | |
plot_list(lists_of_x[i], lists_of_y[i], label=i, clf=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment