linusromer / bezierplot

bezierplot is a Lua program that approximates function plots by cubic bézier splines (paths are output in TikZ)
LaTeX Project Public License v1.3c
8 stars 1 forks source link

bezierplot

Given a smooth function, bezierplot returns a smooth bezier path written in tikz. It finds special points such as extreme points and inflection points and reduces the number of used points.

bezierplot-nodes1

The upper graph of sqrt(x) used bezierplot, the lower used the built-in plotting function of tikz with 100 samples (no smoothing) and is still quite inexact at the beginning.

bezierplot-nodes2

For more information read the documentation.

Author

Linus Romer