Difference between revisions of "Gnuplot"

From Linuxintro
imported>ThorstenStaerk
(New page: vmstat -nd 1 2 | grep -v r | awk '{print $4;}' >vmstat.txt gnuplot -p -e "plot 'vmstat.txt' with lines")
 
imported>ThorstenStaerk
Line 1: Line 1:
 +
Here is an example how to visualize [[vmstat]]'s output using gnuplot.
 +
 
  vmstat -nd 1 2 | grep -v r | awk '{print $4;}' >vmstat.txt
 
  vmstat -nd 1 2 | grep -v r | awk '{print $4;}' >vmstat.txt
 
  gnuplot -p -e "plot 'vmstat.txt' with lines"
 
  gnuplot -p -e "plot 'vmstat.txt' with lines"
 +
 +
gnuplot> plot 'vmstat.txt' using 1:4 title 'HI' with lines, \
 +
>'vmstat.txt' using 1:5 title 'lo' with lines;

Revision as of 12:17, 11 December 2010

Here is an example how to visualize vmstat's output using gnuplot.

vmstat -nd 1 2 | grep -v r | awk '{print $4;}' >vmstat.txt
gnuplot -p -e "plot 'vmstat.txt' with lines"
gnuplot> plot 'vmstat.txt' using 1:4 title 'HI' with lines, \
>'vmstat.txt' using 1:5 title 'lo' with lines;