cd /news/developer-tools/announcing-fplotlib-pure-fortran-plo… · home › topics › developer-tools › article
[ARTICLE · art-177168] src=fortran-lang.discourse.group ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Announcing fplotlib: Pure Fortran Plotting, Animations, TeX Math, and Scientific Reports

A new open-source project, fplotlib, brings pure Fortran plotting, animations, TeX math rendering and scientific reports to Fortran developers, distributed as an fpm (Fortran Package Manager) dependency from the fortran-lang GitHub organization. A demonstration prompt in Mistral AI Code generated a Fortran program that plots the Weierstrass function with a=0.5 and b=3 over the range [-5, +5] using fplotlib and displays it in a GTK4 window via the gtk-fortran dependency. The example shows coding assistants can assemble working Fortran visualization code from fpm dependencies, with the author noting that instructing the AI to format plot titles, axes and legends with $$ LaTeX syntax improves the output.

key takeaway

fplotlib ships as an fpm dependency that renders plots, animations and LaTeX-style math in pure Fortran, and a Mistral AI Code prompt combining it with gtk-fortran produced a GTK4 window plotting the Weierstrass function (a=0.5, b=3) over [-5, +5].

read1 min views1 publishedNov 27, 2026
Announcing fplotlib: Pure Fortran Plotting, Animations, TeX Math, and Scientific Reports
Image: Fortran-Lang (auto-discovered)

Beautiful!

A short prompt in Mistral AI Code:

Create a Fortran project using two fpm (Fortran Package Manager) dependencies:
https://github.com/fortran-lang/fplotlib/
https://github.com/vmagnin/gtk-fortran/

The program will plot the Weierstrass function (with a=0.5 and b=3) in the [-5 ; +5] range using fplotlib:
https://en.wikipedia.org/wiki/Weierstrass_function_(nowhere-differentiable_function)

It will display that plot in a GTK4 window.

The result:

@vmagnin tell your AI to format the math correctly in the plot title, axes and legend using $$ and latex syntax. It will look beautiful!

── more in #developer-tools 4 stories · sorted by recency
── more on @fplotlib 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/announcing-fplotlib-…] indexed:0 read:1min 2026-11-27 · —