examples: Improve wifi-ofdmt-eht-validation.cc
This commit is contained in:
@@ -124,8 +124,8 @@ main(int argc, char* argv[])
|
||||
std::stringstream plotExtra;
|
||||
plotExtra << "set xrange [-5:55]\n\
|
||||
set yrange [0:1]\n";
|
||||
uint8_t lineNumber = 1;
|
||||
const std::string colors[14] = {
|
||||
|
||||
const std::vector<std::string> colors{
|
||||
"green",
|
||||
"blue",
|
||||
"red",
|
||||
@@ -141,10 +141,13 @@ set yrange [0:1]\n";
|
||||
"olive",
|
||||
"beige",
|
||||
};
|
||||
for (uint32_t i = 0; i < modes.size(); i++)
|
||||
|
||||
NS_ASSERT_MSG(colors.size() == modes.size(), "Colors and modes vectors have different sizes");
|
||||
|
||||
for (std::size_t i = 0; i < modes.size(); i++)
|
||||
{
|
||||
plotExtra << "set style line " << +lineNumber++ << " linewidth 5 linecolor rgb \""
|
||||
<< colors[i] << "\" \n";
|
||||
plotExtra << "set style line " << (i + 1) << " linewidth 5 linecolor rgb \"" << colors[i]
|
||||
<< "\" \n";
|
||||
}
|
||||
plotExtra << "set style increment user";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user