From 9316c1a8b16737201d4ca71e9846b6bac0b1b514 Mon Sep 17 00:00:00 2001 From: Konrad Hofbauer Date: Fri, 29 Mar 2019 15:39:53 +0100 Subject: [PATCH] Suppress max figures open warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: none Change-Id: I8664c8e371c8622da45510be0e1f732657f5e643 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/130504 Reviewed-by: Björn Terelius Commit-Queue: Konrad Hofbauer Cr-Commit-Position: refs/heads/master@{#27367} --- rtc_tools/event_log_visualizer/plot_python.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/rtc_tools/event_log_visualizer/plot_python.cc b/rtc_tools/event_log_visualizer/plot_python.cc index bb42556250..2efb1f1ea0 100644 --- a/rtc_tools/event_log_visualizer/plot_python.cc +++ b/rtc_tools/event_log_visualizer/plot_python.cc @@ -164,6 +164,7 @@ PythonPlotCollection::~PythonPlotCollection() {} void PythonPlotCollection::Draw() { printf("import matplotlib.pyplot as plt\n"); + printf("plt.rcParams.update({'figure.max_open_warning': 0})\n"); printf("import matplotlib.patches as mpatches\n"); printf("import matplotlib.patheffects as pe\n"); printf("import colorsys\n");