Skip to content

Commit

Permalink
Adjustments not necessary, try change definition of fig
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Sommani committed Nov 14, 2023
1 parent 998359a commit 15de794
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions skyreader/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def bounding_box(ra, dec, theta, phi):
unit=r"$-2 \Delta \ln (L)$",
)

fig = plt.gcf()
fig = matplotlib.pyplot.figure(figsize=(self.PLOT_SIZE_X_IN,self.PLOT_SIZE_Y_IN))
ax = plt.gca()
image = ax.get_images()[0]
# Place colorbar by hand
Expand Down Expand Up @@ -679,10 +679,6 @@ def bounding_box(ra, dec, theta, phi):
equatorial_map, coord = 'C', column_names = ['2LLH'],
extra_header = fits_header, overwrite=True)

# adjust dimensions of the plot
spacing = 0.01
fig.subplots_adjust(bottom=spacing, top=1.-spacing, left=spacing+0.04, right=1.-spacing)

# add title
fig.suptitle(plot_title)

Expand Down

0 comments on commit 15de794

Please sign in to comment.