Hello
I’m happy to announce a new version of oplot, a library for plotting mathematical functions, using openGL by default for fast rendering and animations, but also providing high quality vector graphics exports.
This version has a new feature that math lovers will appreciate: implicit_curve plotting!
For instance do you want to know what the solutions to the equation (x²+y²-1)³ - x² y³ = 0 look like?
Here is the result:
If you already dug into the problem of plotting implicit curves you know that it’s sometimes very difficult to localize in advance the various singularities of the curve. oplot gives you 3 ways of tuning the computation: grid size, recursive grid size for subsampling where the curvature of the curve seems high, and control over the iterations of the Newton method. There is also a pole detection, where the function changes sign but probably still doesn’t have a zero there. You can obtain debug information for any curve, for instance here you see the default parameters automatically detected for the above curve: initial grid (green) and subsampling (cyan):
oplot is available in opam, doc is here.


