How to create a .png image in gnuplot to see no spaces between graph itself and image edges.
I use
set terminal pngcairo size 800,600 enhanced
I want exactly 800×600 image. And want all 0X axis correspond to [0..800] interval, and all 0Y correspond to [0..600] interval.
It looks like you want to set the margins to 0. Here is an example script:
This way the plot will fill the canvas exactly. You can type
help set marginin gnuplot for details. (Uncomment the comments in my example if you want a slightly cleaner plot.)