Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GNUPlot color inversion

Since my eyes get less strained with dark windows, I'd like to set a dark background in my gnuplot terminal. Setting a dark square beneath the plot would be a solution, if only this would not affect readability (dark lines on dark background...).

I don't want to spend my day in finding color combinations, however by inverting the terminal color I would get exactly what I need: dark background and readable plots.

Does anyone know a command for inverting the terminal, or the name of an interactive terminal (supported by GNU/Linux) which supports color inversion?

Thanks in advance.

like image 800
Dacav Avatar asked Aug 09 '26 13:08

Dacav


1 Answers

Many terminals (including png and wxt) have background option.

You can set dark background, for example:

set terminal wxt background '#00222222'

And then change border/axis color to something light, for example:

set style line 101 lc rgb '#808080' lt 1 lw 1
set border 3 front ls 101

I don't know about automatic 'color inversion', but this seems like a pretty good workaround. You can find some interesting information in Ease your plotting with config-snippets article.

See gnuplot-colorbrewer for some predefined color schemes.

like image 168
tmp Avatar answered Aug 11 '26 12:08

tmp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!