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?
If you do want to send your .png to stdout, just don't set the output:
#!/usr/bin/env gnuplot
set term png
plot x
Then run the script
./plot.plt > mypng.png
I think the bash wrapper makes more sense for most purposes, but this is potentially useful as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With