If you've used data validation in Excel before, you probably selected the relevant cells, clicked "Data Validation" in the Data tab on the ribbon, and created the rule in the Data Validation dialog ...
As with statsmodels, Matplotlib does have a learning curve. There are two major interfaces, a low-level "axes" method and a ...