• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
11 #include "rtc_tools/rtc_event_log_visualizer/plot_python.h"
12 
13 #include <stdio.h>
14 
15 #include <memory>
16 #include <string>
17 #include <vector>
18 
19 #include "rtc_base/checks.h"
20 
21 namespace webrtc {
22 
PythonPlot()23 PythonPlot::PythonPlot() {}
24 
~PythonPlot()25 PythonPlot::~PythonPlot() {}
26 
Draw()27 void PythonPlot::Draw() {
28   PrintPythonCode();
29 }
30 
PythonPlotCollection(bool shared_xaxis)31 PythonPlotCollection::PythonPlotCollection(bool shared_xaxis)
32     : shared_xaxis_(shared_xaxis) {}
33 
~PythonPlotCollection()34 PythonPlotCollection::~PythonPlotCollection() {}
35 
Draw()36 void PythonPlotCollection::Draw() {
37   PrintPythonCode(shared_xaxis_);
38 }
39 
AppendNewPlot()40 Plot* PythonPlotCollection::AppendNewPlot() {
41   Plot* plot = new PythonPlot();
42   plots_.push_back(std::unique_ptr<Plot>(plot));
43   return plot;
44 }
45 
46 }  // namespace webrtc
47