Update event_log_visualizer tool to avoid matplotlib 3.4 deprecation warnings.

Bug: None
Change-Id: I973f7b460d0a86aa249e3539b8a5d5fdbc76ae1a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/263441
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37040}
This commit is contained in:
Björn Terelius 2022-05-24 15:33:37 +02:00 committed by WebRTC LUCI CQ
parent 51e5bacb8b
commit 4a7883f442

View file

@ -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_) {