How to set custom tics labels with different colours? Now, I getting an error: undefined variable: tc
set ytics ("1" 1.0 tc rgb 'purple', "0.8" 0.8 tc rgb 'purple', "1" 1.4 tc rgb 'forest-green', "0.8" 1.2 tc rgb 'forest-green', "1" 1.8 tc rgb 'black', "0.8" 1.6 tc rgb 'black')
set y2tics ("1" 1.2 tc rgb 'blue', "0.8" 1.0 tc rgb 'blue', "1" 1.6 tc rgb 'red', "0.8" 1.4 tc rgb 'red', "1" 2.0 tc rgb 'brown', "0.8" 1.8 tc rgb 'brown')
As far as I know, you can set the color of the tics per axis (check
help xtics), but not individually. So you have to do it semi-manually. One way would be for example via drawing arrows. Maybe depending on the full picture/context there might be other solutions.Edit: adding custom colored ticlabels as well
Script:
Result: