Skip to content

Commit

Permalink
DOC: Make sure everything is cleared between area plots
Browse files Browse the repository at this point in the history
This helps with memory usage when running generating all these plots.
  • Loading branch information
dopplershift committed Oct 26, 2023
1 parent 1bea17d commit 1c51ab9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/make_areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1c51ab9

Please sign in to comment.