Currently, I do something like the following:
set term png
set output 'file.png'
But hardcoding filename in the script is quite inflexible. Is there some way to tell gnuplot to output image file to stdout, so I will be able to redirect it's output where needed?