I have some data to plot in Gnuplot, however I am finding a problem in the palette colors. Maybe this problem has been addressed before, but I did not find a solution after searching the web...
I isolated the problem and below are the script and a data file. The output is atached.
In the script the value z=10 is dark-violet. In the plot the corresponding data point has the correct color. However in the palette of the plot both z=9 and z=10 are tan1. Please, what am I missing?
In cbrange I wish [-0.5:28.5] because in this way the cbtics are centered (centred) at 5, 10, 15, etc. I would like also a discrete colors palette because the values of z are discrete and in the actual data I have the discrete colors scheme improves the visualisation.
Problem with palette colors, what am I missing?
I have some data to plot in Gnuplot, however I am finding a problem in the palette colors. Maybe this problem has been addressed before, but I did not find a solution after searching the web...
I isolated the problem and below are the script and a data file. The output is atached.
Script:
Data file (test.dat):
In the script the value z=10 is dark-violet. In the plot the corresponding data point has the correct color. However in the palette of the plot both z=9 and z=10 are tan1. Please, what am I missing?
In cbrange I wish [-0.5:28.5] because in this way the cbtics are centered (centred) at 5, 10, 15, etc. I would like also a discrete colors palette because the values of z are discrete and in the actual data I have the discrete colors scheme improves the visualisation.
$ gnuplot --version
gnuplot 5.4 patchlevel 2
Thank you!
(Greetings from Brazil)