intent: How can I get the color of the last figure in matplotlib?
rewritten_intent: make a line plot with errorbars, `ebar`, from data `x, y, err` and set color of the errorbars to `y` (yellow)
snippet: ebar = plt.errorbar(x, y, yerr=err, ecolor='y')