From d1564a27834796f424c5e51db9e9178b50dd9bbc Mon Sep 17 00:00:00 2001 From: Randy LeVeque Date: Sun, 7 Sep 2025 22:11:18 -0700 Subject: [PATCH] suppress plot made by --- src/python/geoclaw/topotools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/geoclaw/topotools.py b/src/python/geoclaw/topotools.py index df8f8416c..aec051fda 100644 --- a/src/python/geoclaw/topotools.py +++ b/src/python/geoclaw/topotools.py @@ -1716,6 +1716,7 @@ def make_shoreline_xy(self, sea_level=0): x = self.x y = self.y Z = self.Z + fig = plt.figure() c = plt.contour(x,y,Z,[sea_level]) # c is the level 0 contour as list of arrays, one for each segement # catenate these together separated by array([nan,nan]): @@ -1723,6 +1724,7 @@ def make_shoreline_xy(self, sea_level=0): for k in range(1,len(c.allsegs[0])): shoreline_xy = numpy.vstack((shoreline_xy, \ numpy.array([numpy.nan,numpy.nan]), c.allsegs[0][k])) + plt.close(fig) return shoreline_xy