diff --git a/docs/make_areas.py b/docs/make_areas.py index 5d565409b24..3df13db1921 100644 --- a/docs/make_areas.py +++ b/docs/make_areas.py @@ -52,6 +52,7 @@ def generate_area_file(app): if area in states_provinces: code = textwrap.dedent(f""" .. plot:: + :context: reset import matplotlib.pyplot as plt import cartopy.crs as ccrs @@ -75,6 +76,7 @@ def generate_area_file(app): else: code = textwrap.dedent(f""" .. plot:: + :context: reset import matplotlib.pyplot as plt import cartopy.crs as ccrs