Pass label and plot style to the TimeSeries' constructor.
BUG=webrtc:7323 Review-Url: https://codereview.webrtc.org/2750583002 Cr-Commit-Position: refs/heads/master@{#17237}
This commit is contained in:
@ -71,5 +71,15 @@ void Plot::SetTitle(std::string title) {
|
||||
title_ = title;
|
||||
}
|
||||
|
||||
TimeSeries* Plot::AddTimeSeries(const char* label, PlotStyle style) {
|
||||
series_list_.emplace_back(label, style);
|
||||
return &series_list_.back();
|
||||
}
|
||||
|
||||
TimeSeries* Plot::AddTimeSeries(const std::string& label, PlotStyle style) {
|
||||
series_list_.emplace_back(label, style);
|
||||
return &series_list_.back();
|
||||
}
|
||||
|
||||
} // namespace plotting
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user