| 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\', "
|
|
|