fplotlib is a pure Fortran plotting library designed to make scientific visualization accessible through a familiar, pylab-style interface. It generates SVG, PNG, PDF, and EPS files without relying on an external graphics library; its PNG rasterizer and fonts are included. A simple workflow can plot arrays, add titles, labels, grids, and legends, then save or display the figure. Convenience options allow common formatting and output settings to be supplied directly to a plotting call.
The library covers a wide range of plots, including lines, scatter plots, bars, histograms, box and violin plots, contour maps, images, vector fields, and 3D and polar plots. It supports multiple figures and subplot grids, both through stateful commands and axes handles, plus shared axes, layout adjustment, legends, annotations, color maps, formatting, and axis scaling. Additional tools include tables, patches, animations, and rich Markdown text with TeX math. Its behavior includes automatic axis limits, handling of missing values, and layered drawing, with many options modeled on Matplotlib. The repository includes source code, examples, tests, benchmarks, documentation, and a gallery, making it possible to inspect both implementation and usage before adopting it.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.