1 /* 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 #ifndef RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ 11 #define RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ 12 13 #include "rtc_tools/rtc_event_log_visualizer/plot_base.h" 14 15 namespace webrtc { 16 17 class PythonPlot final : public Plot { 18 public: 19 PythonPlot(); 20 ~PythonPlot() override; 21 void Draw() override; 22 }; 23 24 class PythonPlotCollection final : public PlotCollection { 25 public: 26 // This class is deprecated. Use PlotCollection and PrintPythonCode() instead. 27 RTC_DEPRECATED explicit PythonPlotCollection(bool shared_xaxis = false); 28 ~PythonPlotCollection() override; 29 void Draw() override; 30 Plot* AppendNewPlot() override; 31 32 private: 33 bool shared_xaxis_; 34 }; 35 36 } // namespace webrtc 37 38 #endif // RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ 39