gnuplot -e 'set terminal pngcairo; set output "scatter.png"; set datafile separator ","; plot "data.csv" using 2:4 with points pt 7'
Scatter plot columns 2 and 4 with round markers
The with points style draws one marker per data pair instead of connecting lines, the right choice for scatter plots of two variables. The pt 7 setting selects point type 7, a filled circle, and ps can follow to control marker size. Scatter plots reveal correlation and clustering between the two columns. Switch to with lines when the order of points matters.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.