From 4a7883f442eaba310f6f1427987c26ea8ee43a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Terelius?= Date: Tue, 24 May 2022 15:33:37 +0200 Subject: [PATCH] Update event_log_visualizer tool to avoid matplotlib 3.4 deprecation warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: None Change-Id: I973f7b460d0a86aa249e3539b8a5d5fdbc76ae1a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/263441 Commit-Queue: Björn Terelius Reviewed-by: Artem Titov Cr-Commit-Position: refs/heads/main@{#37040} --- rtc_tools/rtc_event_log_visualizer/plot_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_tools/rtc_event_log_visualizer/plot_base.cc b/rtc_tools/rtc_event_log_visualizer/plot_base.cc index bf76a67bb5..7926019cd2 100644 --- a/rtc_tools/rtc_event_log_visualizer/plot_base.cc +++ b/rtc_tools/rtc_event_log_visualizer/plot_base.cc @@ -220,7 +220,7 @@ void Plot::PrintPythonCode() const { printf("plt.ylabel(\'%s\')\n", yaxis_label_.c_str()); printf("plt.title(\'%s\')\n", title_.c_str()); printf("fig = plt.gcf()\n"); - printf("fig.canvas.set_window_title(\'%s\')\n", id_.c_str()); + printf("fig.canvas.manager.set_window_title(\'%s\')\n", id_.c_str()); if (!yaxis_tick_labels_.empty()) { printf("yaxis_tick_labels = ["); for (const auto& kv : yaxis_tick_labels_) {