The x-position of the boxes for instrument A are slightly shifted to the left, the ones for C to the right by subtracting or adding the value of bs. The significance indicator is created by three black arrows and a text label: # Draw line for significance test set arrow 1 from 0, 1 to 1, 1 nohead ls 5 set arrow 2 from 0, 1 to 0, 0.95 nohead ls 5 set arrow 3 from 1, 1 to 1, 0.95 nohead ls 5 set label '**' at 0.5, 1.05 centerįor the plot the index command is used to plot first condition A, then B and then C by using block 0,1, and 2 respectively. set style line 1 lc rgb 'gra圓0' lt 1 lw 2 set style line 2 lc rgb 'gray40' lt 1 lw 2 set style line 3 lc rgb 'gray70' lt 1 lw 2 set style line 4 lc rgb 'gray90' lt 1 lw 2 set style line 5 lc rgb 'black' lt 1 lw 1.5 set style fill solid 1.0 border rgb 'gre圓0' Also we define a black line to plot the significance indicator (arrow). Note that we have to define two more colors for the boxes, because we use three different colors. The color definitions and axes settings are done in a similar way as in the previous blog entry. Now every instrument is stored in a different data block containing both conditions as columns. Note that the data have two empty lines between the blocks in the real data file: Therefore we store our data in a format, that can be used by the index command in Gnuplot. 1 Plot the mean and variance of the given data ( code to produce this figure) 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.
0 Comments
Leave a Reply. |