Say I have the following:
fig = figure()
ax = f.add_subplot(111)
# my_values holds a 2D numpy array
lines = ax.plot(my_values)
Say that for each column of my_values I have a string holding the legend that I want associated with the corresponding line.
e.g.
my_legends = ['foo ' + str(x) for x in xrange(my_values.shape[1])]
I have the handles for the figure (fig), axes (ax) and the lines (lines), how can I add these legends to the plot?
