Two column data
If you have configured the Data.csv
data Data.csv
1 10 2 20 3 ? 4 40 5 50
you can create your data with connected lines using
plot '<grep -v "?" Data.csv' u ($1):($2) w lp
More than two column data
For more than two columns, you can use awk.
With data file Data.csv
1 10 1 2 20 2 3 ? 3 4 40 ? 5 50 5
you can run the script on the data file for each chart as follows:
plot "<awk '{if($2 != \"?\") print}' Data.csv" u ($1):($2) w lp, \ "<awk '{if($3 != \"?\") print}' Data.csv" u ($1):($3) w lp
Link to scripts in gnuplot can be found here here . The awk user guide is here .
source share