diff --git a/requirements/requirements-docs.txt b/requirements/requirements-docs.txt index 2de120c1f3..4e0fc592ae 100644 --- a/requirements/requirements-docs.txt +++ b/requirements/requirements-docs.txt @@ -15,4 +15,4 @@ click orjson black holidays~=0.9 -matplotlib +matplotlib~=3.6 diff --git a/requirements/requirements-test.txt b/requirements/requirements-test.txt index e520671b01..88205bcaf8 100644 --- a/requirements/requirements-test.txt +++ b/requirements/requirements-test.txt @@ -8,4 +8,4 @@ ujson orjson requests holidays~=0.9 -matplotlib +matplotlib~=3.6 diff --git a/src/gluonts/model/forecast.py b/src/gluonts/model/forecast.py index 0652c315a7..f41d001212 100644 --- a/src/gluonts/model/forecast.py +++ b/src/gluonts/model/forecast.py @@ -316,7 +316,7 @@ def plot( # If no color is provided, we use matplotlib's internal color cycle. # Note: This is an internal API and might change in the future. color = maybe.unwrap_or_else( - color, lambda: next(ax._get_lines.prop_cycler)["color"] + color, lambda: ax._get_lines.get_next_color() ) # Plot median forecast