The sample data is generated as follows,
import matplotlib as mpl print(mpl.__version__) # 3.3.3 import matplotlib.pypl