In gnuplot-4.2.6 I can produce a nice white on black image using
set term png medium x000000 xffffff
set output 'file.png'
plot x
This produces a png file with a black background and white axes, axis labels, titles, legend text, etc.
The new gnuplot-5.0.1 complains about the above 'set term' command saying "obsolete color option". The closest I can come to getting an image which is white on black is to set the background to black with
set term png medium background '#ffffff'
set output 'file.png'
plot x
but this just sets the background to black without setting the axes, axis labels etc. to white.
Does anyone know how I can get white on black png images in the latest version of gnuplot?
These color options for the png terminal were removed with version 4.6. The log says about this: This mechanism is totally obsolete except for setting the background color.
Since version 4.6.0 you can (but also must) set the
linecolor
andtextcolor
of every part explicitely:If you only need those settings for some pictures you could move several parts to some kind of config file `black-and-white.gp' with the content
In the actual plotting file you use it like