benschneider / PyGnuplot

Python interface to gnuplot
MIT License
45 stars 18 forks source link

PNG/JPG output? #18

Closed dreamonhigh closed 2 years ago

dreamonhigh commented 2 years ago

hello,

is there a way to output as a png or jpg format. ps or pdf I cannot use for web usage. tried to convert ps to png/jpg but its not usable for this.

maybe its already exportable? but how

Thanks

benschneider commented 2 years ago

in gnuplot the command would be something like:


set term png nocrop enhanced size 640, 480 font "arial, 12.0"
set out =  "myfile.png"
replot

set term x11