cetz-package / cetz-plot

Create Plots and Charts with CeTZ
GNU Lesser General Public License v3.0
7 stars 1 forks source link

plot: Improve smooth plots by using non-sampled curves #5

Open johannes-wolf opened 10 months ago

johannes-wolf commented 10 months ago

Currently smooth calculates a catmull curve for the data and samples that to draw it using straight lines. Instead, smooth data should be drawn using bezier curves. This requires bezier curve clipping.

johannes-wolf commented 8 months ago

Now that precise line-bezier intersection got implemented, this can be done.