From 1595ad760b9cc10ddc69b57e58aefca611f6a60f Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sat, 30 Dec 2023 09:51:38 +0000 Subject: [PATCH] fin --- autoarray/plot/wrap/two_d/contour.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoarray/plot/wrap/two_d/contour.py b/autoarray/plot/wrap/two_d/contour.py index 8d099932..fa1f2287 100644 --- a/autoarray/plot/wrap/two_d/contour.py +++ b/autoarray/plot/wrap/two_d/contour.py @@ -90,4 +90,7 @@ def set(self, array: Union[np.ndarray, Array2D], extent: List[float] = None, use array.native[::-1], levels=levels, extent=extent, **config_dict ) if self.include_values: - ax.clabel(levels=levels, inline=True, fontsize=10) + try: + ax.clabel(levels=levels, inline=True, fontsize=10) + except ValueError: + pass