I am trying to simulate this example code. But when I try plotting a
gnuplot, i get an error saying,
DsssRate1Mbps
^
"wifi.dat", line 1: invalid command
My build was successful and I used the set of following commands:
$ ./waf --run wifi-clear-channel-cmu > wifi.dat
$ gnuplot wifi.dat
need some help in resolving this issue.
Thanks!
Thanks,
Sagar
There are 2 common methods to make a plot using ns-3 and gnuplot:
1. Create a gnuplot control file using ns-3‘s Gnuplot class.
2. Create a gnuplot data file using values generated by ns-3.
If you are interested in method 1, see the “Making Plots using the
Gnuplot Class” section in the ns-3 Manual:
http://www.nsnam.org/docs/release/3.12/manual/html/gnuplot.html
If you are interested in method 2, see the “A Real Example” subsection
under the “Tracing” section in the ns-3 Tutorial:
http://www.nsnam.org/docs/release/3.12/tutorial/html/tracing.html
Mitch
I finally got to figure out how to plot this graph. But the
clear-channel.eps file which gets generated in the end shows that the
y-axis values are 0 all the time. i.e. the number of packets is 0 all
the time. Any remarks on that??
Thanks
Sagar
Mitch
Thanks!
Sagar
Or simply apply this patch:
http://code.nsnam.org/ns-3-dev/rev/4da35aed3cb2