Gnuplot is a tool that can generate script-driven graphics, including plots of functions and data samples. Gnuplot contains a useful scripting language that allows you to process raw data files while producing graphics. For example, you can plot ratios of different values contained in raw data files.

If you would like to plot the ratio of data belonging to two different columns in a data file:

$ cat my.txt

1 10 20
2 20 25
. . .

gnuplot> plot "my.txt" using 1:($3/$2) title "ratio of the 3rd col over the 2nd col" with lp

If you would like to plot the ratio of data belonging to two different data files:

Support Xmodulo

Dan Nanni is the founder and also a regular contributor of Xmodulo.com. He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.