Add y-axis tick labels.
This is intended to by used for visualizing catagorical data, i.e. mapping numerical enum values to string labels. Bug: webrtc:10623 Change-Id: Ic9c3da9a3874f479c07412f394a774ae90fd3d7e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/145408 Reviewed-by: Sebastian Jansson <srte@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28656}
This commit is contained in:
committed by
Commit Bot
parent
46bbdec1ab
commit
54d9602fe1
@ -137,6 +137,9 @@ class Plot {
|
||||
float bottom_margin = 0,
|
||||
float top_margin = 0);
|
||||
|
||||
void SetYAxisTickLabels(
|
||||
const std::vector<std::pair<float, std::string>>& labels);
|
||||
|
||||
// Sets the title of the plot.
|
||||
void SetTitle(const std::string& title);
|
||||
|
||||
@ -162,6 +165,7 @@ class Plot {
|
||||
float yaxis_min_;
|
||||
float yaxis_max_;
|
||||
std::string yaxis_label_;
|
||||
std::vector<std::pair<float, std::string>> yaxis_tick_labels_;
|
||||
std::string title_;
|
||||
std::string id_;
|
||||
std::vector<TimeSeries> series_list_;
|
||||
|
||||
Reference in New Issue
Block a user