Using gnuplot to project simulation results
One of the interesting activities in analyzing simulation results is projecting results visually using a variety of plots. In this section, we discuss how to project simulation results using the gnuplot
tool. In ns-3, simulation results are usually obtained using Flow Monitor. But the format of Flow Monitor results may not be suitable for plotting. Flow Monitor results need to be parsed and converted into suitable input files for gnuplot
. In order to carry out these activities, we explain simple parsing procedures using Unix commands such as grep
, awk
, cut
, and paste
. In this section, related to projecting simulation results, we discuss the following:
- The
gnuplot
basics - How to parse simulation results for plotting
- How to plot line charts and bar charts
The gnuplot basics
Users who are new to gnuplot
will first need to install it using the apt-get install gnuplot
command and go through the following gnuplot
commands...