Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tikk3r committed Mar 31, 2023
1 parent 63e5585 commit 21b9e94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bdsf/plotresults.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ def plotresults(img, ch0_image=True, rms_image=True, mean_image=True,
numx = 1
numy = int(N.ceil(float(len(images))/float(numx)))
fig = pl.figure(figsize=(max(15, 10.0*float(numy)/float(numx)), 10.0))
fig.canvas.set_window_title('PyBDSM Fit Results for '+ img.filename)
try:
# This way has been deprecated with Matplotlib 3.4.
fig.canvas.set_window_title('PyBDSM Fit Results for '+ img.filename)
except AttributeError:
# We are on a newer Matplotlib where the above is deprecated.
fig.canvas.manager.set_window_title('PyBDSM Fit Results for '+ img.filename)
gray_palette = cm.gray
gray_palette.set_bad('k')

Expand Down

0 comments on commit 21b9e94

Please sign in to comment.