Loading [MathJax]/jax/output/HTML-CSS/config.js
FuncViz examples
Generalized bitree/quadtree/octree library
All Files Functions
curve_plot.cpp File Reference

A simple curve plot. More...

Go to the source code of this file.

Detailed Description

A simple curve plot.

Author
Mitch Richling http://www.mitchr.me/
Date
2024-07-18
Standards
C++23
Details


Univariate function plots are the bread-and-butter of the plotting world. Normally a simple, uniformly spaced, sequence is enough to get the job done quite nicely. Still, a few things can come up:

  • Jump discontinuities & Vertical asymptotes: Resolved with higher sampling near the discontinuities and a cutting edge (TBD)
  • Isolated, non-differentiable points: Resolved with higher sampling near the points and a folding edge (TBD)
  • Undefined intervals: Resolved with higher sampling near the edges and NaN edge repair
  • Regions of high oscillation: Resolved with higher sampling on the regions
  • Extrema: Resolved with higher sampling near the extrema

Note that most of the items above are listed TBD. A few features need to be added to MR_rt_to_cc. ;) Note the TODO comments in the body of main().

Definition in file curve_plot.cpp.