When drawing thick lines, the way lines look like differs between Scilab figure window and graphics exported to a file in vector format, e.g. PDF or SVG.
In the Scilab figure window (left), at each point (marked red) the lines just end.
In the figure exported to PDF (right), line segments are joined by a miter. Since the angle between the central line segments is small, the miter extends far beyond the data point.
In PDF, SVG and JAVA there is a parameter allowing to change the line join from miter to round or bevel. Is there any possibility in Scilab to change parameters for the figure export?
And here is some background why I ask:
I often plot measurement data.
Data series can be quite large, i.e. spacing in x can be pretty small.
Since measurement data has noise, data series is wiggling up and down.
Due to above described effect, visual noise in the exported graphics is a lot higher than real measurement noise.
Like this exported graphics is useless.
Feel free to create an issue to illustrate the problem you describe in your last message. Please be constructive by comparing exported graph between Scilab and other system that yields more adequate rendering.
The visual effect depends on line thickness and point spacing (in x).
If points are close enough, the same problem occurs with normal line thicknesses.
Making lines thinner is not always a viable solution.
In fact the problem is easier to solve for exported graphics, but we have also a line joining problem for onscreen rendering, which is not solvable with the same method (allow to customize the line joining method, at the user level). We can create a new setting to control both outputs (onscreen + vectorial export), but I don’t have the solution of the onscreen case.
Actually, onscreen is o.k. for me.
I have not yet found a real life case where onscreen was ugly.
My problem is with export only.
And actually it is export to VECTOR graphics only.
Export to pixel graphics looks like onscreen.
You are right.
My text was somewhat badly formulated.
I wanted to say, that it might be linked to the issue of onscreen line segments just stopping at the data points.