hn.today

fplotlib – Fortran Plotting Library

github.com14 points2 comments
Screenshot of fplotlib – Fortran Plotting Library

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.

Read on github.com2 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Source Control from Hell

Source Control from Hell

An early software job relied on a shared folder, manual change descriptions, and a tech lead copying code by hand, with coworkers announcing when they needed access to avoid overwriting each other. Discovering Git showed Alex how version control could make collaboration faster and safer, but his company kept its old process for years because it worked well enough for them. (frantic.im)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.