From ff824ca68e8ee205a6812f239d6cf2b24dd8f1a1 Mon Sep 17 00:00:00 2001 From: Frits Sweijen Date: Tue, 2 May 2023 15:56:44 +0200 Subject: [PATCH] Fix #198 (#199) * Fix #198 * Use the new method call `canvas.manager.set_window_title`, which seems to be available since 1.2.0 already. --- bdsf/plotresults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdsf/plotresults.py b/bdsf/plotresults.py index 0fc8cfe..19c109b 100644 --- a/bdsf/plotresults.py +++ b/bdsf/plotresults.py @@ -247,7 +247,7 @@ 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) + fig.canvas.manager.set_window_title('PyBDSM Fit Results for '+ img.filename) gray_palette = cm.gray gray_palette.set_bad('k')