neteq: Add legend in test plot tools

Add a legend when on the python plots generated with neteq_rtpplay.


Bug: None
Change-Id: I4299858bb9e8e59564c824c99272e4fabc610162
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/286840
Reviewed-by: Jesus de Vicente Pena <devicentepena@webrtc.org>
Commit-Queue: Lionel Koenig <lionelk@webrtc.org>
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38838}
This commit is contained in:
Lionel Koenig 2022-12-07 15:02:12 +01:00 committed by WebRTC LUCI CQ
parent f1aa9fbb09
commit a8c300e36f

View File

@ -284,6 +284,9 @@ void NetEqDelayAnalyzer::CreatePythonScript(
output << " plt.ylabel('relative delay [ms]')" << std::endl;
if (!ssrcs_.empty()) {
auto ssrc_it = ssrcs_.cbegin();
output << " plt.legend((\"arrival delay\", \"target delay\", \"playout "
"delay\"))"
<< std::endl;
output << " plt.title('SSRC: 0x" << std::hex
<< static_cast<int64_t>(*ssrc_it++);
while (ssrc_it != ssrcs_.end()) {