Minor problems with gnuplot installation,
Today, when learning NS2. awk and gnuplot are used to analyze latency and packet loss.
Gnuplot is a very sophisticated drawing tool. It is easy to use and has powerful functions.
Installation or through the terminal: sudo apt-get install gnuplot
After installation, note that after entering gnuplot, if the last sentence shows Terminal type set to 'unkonwn ', the image cannot be displayed because the library file is missing.
There are many solutions. select one of the following two commands for execution.
Sudo apt-get install gnuplot-x11 // and the following command 2 select 1
Sudo apt-get install libx11-dev
I used the first one and installed a 'wxt 'library. Other libraries also had 'x11'. After installation, I re-run gnuplot.
The unkonwn of the last row has been changed to wxt. Next, let's test and draw a sin (x) diagram.
If you want to run a drawing script file (for test convenience), you can run it on the gnuplot terminal:
Load 'file _ name'
I believe this software will be frequently used in the future.
Ps: I watched the NS2. it seems that the efficiency is still not high this afternoon and evening, but it is also a bit rewarding. Stick to it and hope to get started early :):):)