Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make key colour black in Gnuplot

How can I make the key "symbols" black in colour when using palettes?

enter image description here

like image 239
A_V Avatar asked Mar 13 '23 02:03

A_V


1 Answers

I think you cannot control this directly, here a workaround:

plot 'MOD1.dat' u 2:3:1 w p pt 7 ps 2 lt black, \
'MOD1.dat' u 2:3:1 w p pt 7 ps 2 lt palette notitle

So, we first plot the data without legend in black, then plot the data points but no legend. The nice thing about this approach is that there is no need to fix the x or y range.

like image 84
Raphael Roth Avatar answered Mar 20 '23 15:03

Raphael Roth