
Here, we show the responses for all incident angles of the sound at once. They describe the transmission of sound from a source to a receiver placed in the ear canal dependent on the position of the source. 1 the same head related impulse responses we animated already are displayed in a slightly different way.
#Gnuplot contour code
( code to produce this figure, color palette, data) 1 Waterfall plot of head related impulse responses. If you want to see an overview, look at my gnuplot configuration snippets and at the collection of palettes and line colors.įig. The set loadpath command tells gnuplot the directory where it can find all the configuration snippets. The same can be done for adding a grid, the right line color definitions and the extra Bessel functions leading to the following excerpt from the main plotting file: In the main plotting file I then just have to load the setting I like to have and I’m done. Set style line 101 lc rgb '#808080' lt 1 lw 1 Here, I have four different config files, called xyborder.cfg, xborder, yborder.cfg, noborder.cfg, which do exactly what their names would suggest. All of those could be easily stored in small config files and reused in other plots.Īs an example I will start with the axes. 1, it is a 2D plot, including axes, a grid, line colors, and definitions of higher order Bessel functions. Let us start with the Bessel function example from the last blog entry. ( code to produce this figure, dark2.pal, xyborder.cfg, grid.cfg, mathematics.cfg) 1 Bessel functions from order zero up to six plotted with the dark2 line colors. Set style line 9 lt 1 lc rgb '#fde725' # yellowįig. Set style line 8 lt 1 lc rgb '#aadc32' # lime green Set style line 7 lt 1 lc rgb '#5cc863' # green Set style line 6 lt 1 lc rgb '#27ad81' # green Set style line 5 lt 1 lc rgb '#21908d' # blue-green Set style line 4 lt 1 lc rgb '#2c718e' # blue Set style line 3 lt 1 lc rgb '#3b518b' # blue

Set style line 2 lt 1 lc rgb '#472c7a' # purple Set style line 1 lt 1 lc rgb '#440154' # dark purple Personally I would not recommend them for every kind of plot as they are a little dark if you have large areas with low values in your plot.Īs usual in the gnuplot-palettes repository they are accompanied by line style definitions using the palette colors. They are well designed to be perceptually uniform and friendly for common forms of colorblindness, so they should be save to use as your default colormap. They are freely available and now also included in the gnuplot-palettes repository on github. Especially viridis you might have seen already as this will be the new default in Matplotlib 2.0. Matplotlib has four new colormaps called viridis, plasma, magma, and inferno.
