

In a last step we add a second phantom plot to our plot command by plotting 1/0 using the image style in order to get the colorbox drawn onto the graph. In addition we have to define our own color palette, as has been discussed already in another colorbox entry. Note, that the notation is not the same as for a rectangle object and uses only the screen coordinates which is a little bit nasty. pm3d) set title 'Textcolor options in splot (notice this title in color)' tc lt 1 set samples 20 set isosamples 20 set autoscale set key box set pm3d at s set colorbox horiz user origin. To achieve this we have to set the origin and size of the colorbox ourselves.
#GNUPLOT COLOR PALETTE CODE#
2 Plot of interaural time differences for different frequency channels, indicated by different colors as shown in the colorbox ( code to produce this figure, data) As can be seen the ITD varies depending on the incident angle (azimuth angle) of the given sound.Īnother possibility to indicate the frequency channels given by the different colors is to add a colorbox to the graph as shown in Figure 2.įig. There the interaural time difference (ITD) between the right and left ear for different frequency channels ranging from 236 Hz to 1296 Hz is shown. Plot for 'itd.txt' u 1:( column( n)*1000) w lines ls n Then we plot our data with these colors and get Figure 1 as a result. Set style line 13 lc rgb '#09ad00' lt 1 lw 1.5 # - green Set style line 12 lc rgb '#00ad14' lt 1 lw 1.5 #. Set style line 11 lc rgb '#00ad31' lt 1 lw 1.5 #. Set style line 10 lc rgb '#00ad4e' lt 1 lw 1.5 #. Set style line 9 lc rgb '#00ad6b' lt 1 lw 1.5 #. Set style line 8 lc rgb '#00ad88' lt 1 lw 1.5 #. Set style line 7 lc rgb '#00ada4' lt 1 lw 1.5 #. Set style line 6 lc rgb '#0099ad' lt 1 lw 1.5 #. Set style line 5 lc rgb '#007cad' lt 1 lw 1.5 #. Set style line 4 lc rgb '#0060ad' lt 1 lw 1.5 #. Set style line 3 lc rgb '#0042ad' lt 1 lw 1.5 #.


Set style line 2 lc rgb '#0025ad' lt 1 lw 1.5 # - blue The values can be easily calculated with GIMP or any other tool that comes with a color chooser. Here we create a transition from blue to green by varying the hue in equal steps. 1 Plot of interaural time differences for different frequency channels, indicated by different colors ( code to produce this figure, data)įor this we first define the colors we want to use.
