It depends on the gradient.
For example: If a horizontal lineGradient is assigned for filling and the line has x1 equal to x2 then the line is not shown, because there is no width for gradient.
The plotter should use fill="#colorHex" instead of fill="url(#gradient)" in SVG line element.