
Hi all,
I have input data as:
x(1),y(2),z(2)
x(2),y(2),z(2)
and so on,
where x and y values are on x-axis and y-axis, respectively, and the z values are the error bars. From Gnuplot, how could I reproduce the figure, in which the error bars of multiple plots are transparent?
Any idea? Thanks!
The plot style with filledcurves can be used with 3 columns of input data to produce the shaded regions. The central lines would have to be drawn separately.
Gnuplot expects input
x y1 y2
so if your data is in the form x, y, delta-y you can construct the gnuplot commands by constructing y1 and y2 in the using specifier
set term png truecolor # or "set term pngcairo"
set output 'fill.png'
#
set style fill transparent solid 0.25 # partial transparency
set style fill noborder # no separate top/bottom lines
plot 'data' using 1:2 with lines lc "blue" title "Force", \
'data' using 1:($2-$3):($2+$3) with filledcurves lc "blue" notitle, \
'data' using ($1-Shift):2 with lines lc "green" title "Shift", \
'data' using ($1-Shift):($2-$3):($2+$3) with filledcurves lc "green" notitle

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With