Gnuplot

Examples

Plot .csv data.

Suppose we have data of such.

-0.00999983, 0.99995
-0.0199987, 0.9998
-0.0299955, 0.99955
-0.0399893, 0.9992
-0.0499792, 0.99875
-0.059964, 0.998201

To plot the second column against the first column, we use the using parameter in gnuplot.

gnuplot -e "set terminal png; set datafile separator ',' ; plot 'complex.txt' using 1:2" | imgcat

# datafile seperator is not always necessary

Back to top

© 2017, Lei Ma | Created with Sphinx and . | On GitHub | Physics Notebook Statistical Mechanics Notebook Neutrino Physics Notes Intelligence | Index | Page Source