From c604fcfaaa812515b0e627d71c5f47151b338e35 Mon Sep 17 00:00:00 2001 From: G-Sommani Date: Tue, 14 Nov 2023 15:23:42 +0100 Subject: [PATCH] fix bug --- skyreader/plot/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyreader/plot/plot.py b/skyreader/plot/plot.py index c88b6af..1bbe3f1 100644 --- a/skyreader/plot/plot.py +++ b/skyreader/plot/plot.py @@ -488,7 +488,7 @@ def bounding_box(ra, dec, theta, phi): fig = matplotlib.pyplot.figure(figsize=(self.PLOT_SIZE_X_IN,self.PLOT_SIZE_Y_IN)) ax = plt.gca() - image = ax.get_images()[0] + image = ax.get_images() # Place colorbar by hand cb = fig.colorbar(image, ax=ax, orientation='horizontal', aspect=50) cb.ax.xaxis.set_label_text(r"$-2 \Delta \ln (L)$")