Skip to content

Instantly share code, notes, and snippets.

@mylons
Created October 14, 2011 17:24
Show Gist options
  • Save mylons/1287733 to your computer and use it in GitHub Desktop.
Save mylons/1287733 to your computer and use it in GitHub Desktop.
simple wrappers to pyplot
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