I'm trying to plot data with Gnuplot where all data values are positive. However, when plotting to PDF some of the output values appear negative under the x-axis:
This does not happen when plotting to PNG.
Reducing the line width helps to mitigate this issue, but this is not really a solution.
How can I print with some wider line width, without having these artifacts in the output? The strange thing is that the "length" of these artifacts is longer than the line width.
Is this an error in Gnuplot?
This happens because the line joints are mitered by default in the pdf terminal, while they are rounded by default in the png terminal.
set terminal pdf rounded
Also see the gnuplot documentation (
help set terminal pdf).