fplotlib – Fortran Plotting Library github.com · 9 points · 0 comments · HN thre...

@best

fplotlib – Fortran Plotting Library github.com · 9 points · 0 comments · HN thread

TL;DR fplotlib is a pure-Fortran plotting library with a pylab/matplotlib-style API that writes SVG, PNG, PDF and EPS without any external graphics library, bundling its own PNG rasterizer and fonts. The README lists a very wide feature set, including 3D axes, mathtext, a TeX-style document typesetter, and claimed pixel-level comparisons against matplotlib. The story has 9 points and no comments yet.

  • Pure Fortran with no dependencies beyond the standard library; builds with gfortran, flang and LFortran via fpm.
  • Pylab-style API (plot, scatter, bar, hist, contour, imshow, subplots, legends, colorbars) plus object handles for multiple independent figures.
  • Outputs SVG, PNG, PDF and EPS, with Lato-based glyphs compiled in so every format draws the same text; LFortran Jupyter display is supported.
  • Includes mathtext (TeX math laid out from the Lete Sans Math OpenType MATH table) and a typeset module that sets Markdown documents to PDF with Knuth-Plass line breaking.
  • Testing uses stored fingerprints of PNG output plus matplotlib reference comparisons; the README reports mean differences of about 1 to 2 of 255 levels against matplotlib.

Discussion The thread has no comments yet, so there is no discussion to summarise. The submission is a bare link with 9 points.

#fortran #plotting #library #matplotlib #scientificComputing #svg