Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Unified Diff: webrtc/rtc_tools/event_log_visualizer/plot_python.cc

Issue 2997883002: Video/Screenshare loopback tool.
Patch Set: Rebase Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/rtc_tools/event_log_visualizer/main.cc ('k') | webrtc/system_wrappers/include/clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_tools/event_log_visualizer/plot_python.cc
diff --git a/webrtc/rtc_tools/event_log_visualizer/plot_python.cc b/webrtc/rtc_tools/event_log_visualizer/plot_python.cc
index dae285526ec93d45f5fda3ba7a9ad012d14a07a9..9202c02db6c2fb087483175b25dfdb167682babf 100644
--- a/webrtc/rtc_tools/event_log_visualizer/plot_python.cc
+++ b/webrtc/rtc_tools/event_log_visualizer/plot_python.cc
@@ -91,8 +91,8 @@ void PythonPlot::Draw() {
}
// IntervalSeries
- printf("interval_colors = ['#ff8e82','#5092fc','#c4ffc4']\n");
- RTC_CHECK_LE(interval_list_.size(), 3);
+ printf("interval_colors = ['#ff8e82','#5092fc','#c4ffc4', '#555555']\n");
+ RTC_CHECK_LE(interval_list_.size(), 4);
// To get the intervals to show up in the legend we have to created patches
// for them.
printf("legend_patches = []\n");
@@ -119,11 +119,20 @@ void PythonPlot::Draw() {
"alpha=0.3)\n",
i, i, i);
} else {
- printf(
- " plt.axvspan(ival%zu[i][0], ival%zu[i][1], "
- "facecolor=interval_colors[%zu], "
- "alpha=0.3)\n",
- i, i, i);
+ if (i < 3) {
+ printf(
+ " plt.axvspan(ival%zu[i][0], ival%zu[i][1], "
+ "facecolor=interval_colors[%zu], "
+ "alpha=0.3)\n",
+ i, i, i);
+ } else {
+ printf(
+ " plt.axvspan(ival%zu[i][0], ival%zu[i][1], "
+ "color=\"none\", "
+ "hatch = '/', "
+ "alpha=0.15)\n",
+ i, i);
+ }
}
printf(
"legend_patches.append(mpatches.Patch(ec=\'black\', "
« no previous file with comments | « webrtc/rtc_tools/event_log_visualizer/main.cc ('k') | webrtc/system_wrappers/include/clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698