Open JamesxX opened 1 month ago
Is there a visible difference if you change it to "raw"
? The reason of "linear"
is to have fewer points if lines are straight, which can improve rendering speed of PDF & SVGs a lot! There must be no visible difference between the two modes. Maybe the options name is bad.
linear:
The error here is, that the linearization/optimization is done on the source data, which is not good. Goal: optimize the generated line-segments.
https://github.com/cetz-package/cetz-plot/blob/8a5f0658b4dea5a889f7ce096e38b6f38bd81b22/src/plot/line.typ#L220
I think people will naturally expect the function being plotted to have its points filtered if its linear (been chasing my tail because of this because of logarithmic plots of linear functions)