Inject colors in graphs generated by gnuplot in term dumb plot mode Inject colors in graphs generated by gnuplot in term dumb plot mode shell shell

Inject colors in graphs generated by gnuplot in term dumb plot mode


Solution 1

Use grep --colors=always <pattern>, it uses grep default color highlighting.

> gnuplot5 -e "set term dumb 70 20; plot 'file1' pt '@'" |           grep --color=always '@'

Solution 2

Use colout <pattern> <color>. It has the ability to select the color but a python library has to be installed (pip install colout).

> gnuplot5 -e "set term dumb 70 20; plot 'file1' pt '@'" | colout '@' green