Write a function trend(values, ax=None) that follows the convention: fall back…

Matplotlib · from Charts you can reuse

ax=Noneplt.gca**kwargsfig.set_size_inchesplt.closefigure factories

Putting the kettle on…

Starting up…

Exercise 1

Write a function trend(values, ax=None) that follows the convention: fall back to plt.gca(), plot values against days, and return the Axes. Call it with an Axes you made, and return [type(out).__name__, out is ax].

your answer
stuck? the lesson behind it
Charts you can reuse
The ax=None convention, and sizing a figure for where it is going