From d238b25a7477f3648fe4a3fb8d581eca290672d1 Mon Sep 17 00:00:00 2001 From: Philipp Risch <91801955+philipprsch@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:25:27 +0300 Subject: [PATCH] Changed fig.canvas.manager Added compatibility for newer matplotlib versions, by changing flg.canvas to flg,canvas.manager for setting the window title --- tfluna_realtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfluna_realtime.py b/tfluna_realtime.py index c122f3a..a18cfaf 100644 --- a/tfluna_realtime.py +++ b/tfluna_realtime.py @@ -129,7 +129,7 @@ def plotter(): plt.style.use('ggplot') # plot formatting fig,axs = plt.subplots(1,2,figsize=(12,8), gridspec_kw={'width_ratios': [5,1]}) # create figure - fig.canvas.set_window_title('TF-Luna Real-Time Ranging') + fig.canvas.manager.set_window_title('TF-Luna Real-Time Ranging') fig.subplots_adjust(wspace=0.05) # ranging axis formatting axs[0].set_xlabel('Sample',fontsize=16)