From 683a61511c79e9e1cb759bb28cb9b09bc899328f Mon Sep 17 00:00:00 2001 From: Rob Farmer Date: Sun, 3 Nov 2024 14:17:51 +0000 Subject: [PATCH] Add extra checks for when not showing burn data Works on #31 Reported-by Xeno3108 --- mesaPlot/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesaPlot/plot.py b/mesaPlot/plot.py index fcaa3f9..e14180d 100644 --- a/mesaPlot/plot.py +++ b/mesaPlot/plot.py @@ -5695,7 +5695,7 @@ def plotKip3( if y2label: ax2.set_ylabel(y2label) - if colorbar: + if colorbar and hasdataz: if cbar_ax is not None: cb = fig.colorbar(im1, cax=cbar_ax, ax=ax, extend=cbar_extend) else: