linusromer / bezierplot

bezierplot is a Lua program that approximates function plots by cubic bézier splines (paths are output in TikZ)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

bezierplot is a Lua program that approximates function plots by cubic bézier splines (paths are output in TikZ)

License:LaTeX Project Public License v1.3c


Languages

Language:Lua 74.1%Language:TeX 25.9%