FunctionRacerProblemsRace

Price and Drawdown

HardmatplotlibPython

Make a figure with two charts, one above the other, sharing the x axis. Day numbers are 0, 1, 2, ...

Return the figure.

Checked: where each chart sits, the lines and the filled areas.

Example 1

prices [100,120,90,110,60,130]
draws
The chart to draw in example 1 of Price and Drawdown

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More matplotlib problems