Environment: gnuplot 5.4.6 packaged by Arch Linux, but also reproducible with gnuplot 5.4.4+ on Windows using the “portable” (.7z
) package
When the background-filled circle is positioned between error bar and marker, the point size set on the plot command is not considered when calculating the size of the blanked-out area, which leads to too large gaps between marker and error bars.
Example snippet for reproducing the problem (see attached image for output):
set term pdfcairo
set samples 15
set output "case_1.pdf"
plot "+" u 1:1:(.75) w yerrorbars pt 7 ps .25
set output "case_2.pdf"
set pointsize .25
plot "+" u 1:1:(.75) w yerrorbars pt 7
unset output
Observed result: "gaps" between marker and error bars with case_1.pdf
, but none with case_2.pdf
Expected result: no gaps between error bars in both case_1.pdf
and case2.pdf
Correct, the size of the gap in the error bar is not dependent on the point size in the plot.
From the documentation (note the final sentence)
The logic is that you may wish to have a variety of point sizes/types within the plot, but the appearance of the errorbars should be consistent for all data points.
Correct, the size of the gap in the error bar is not dependent on the point size in the plot.
From the documentation (note the final sentence)
The logic is that you may wish to have a variety of point sizes/types within the plot, but the errorbars should be consistent.