A customizable graphing calculator for CalcScript.
Usage
Creating a graph is as simple as creating a [Graph] object, adding expressions
and points with [Graph::add_expr] / [Graph::try_add_expr] and
[Graph::add_point], and finally calling [Graph::draw]. The result can be
written to a file in PNG and SVG format.
See the module-level documentation for more information.
Example
Graph the expressions x = erf(y) and y = erf(x) with the viewport centered
on the points (0, 8.1), (1.2, 6.2), (2.3, 4.3), (3.4, 2.4), and (4.5, 0.5), then write the result to erf-output.png:
use Graph;
use File;
Output (note: colors were randomly chosen; random color selection is not included in the example code):