gnuplot -e 'set terminal pngcairo size 1200,800; set output "big.png"; set datafile separator ","; plot "data.csv" using 2:4 with lines'
Plot with a custom canvas size of 1200 by 800
The size keyword inside the terminal setting fixes the output dimensions, here 1200 by 800 pixels, which controls resolution and aspect ratio. Larger canvases suit wide datasets and presentation slides. The default size varies by terminal, so setting it explicitly makes output predictable. Fonts and line widths scale with the canvas.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.