{"slug": "announcing-fplotlib-pure-fortran-plotting-animations-tex-math-and-scientific", "title": "Announcing fplotlib: Pure Fortran Plotting, Animations, TeX Math, and Scientific Reports", "summary": "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.", "body_md": "Beautiful!\n\nA short prompt in Mistral AI Code:\n\n```\nCreate a Fortran project using two fpm (Fortran Package Manager) dependencies:\nhttps://github.com/fortran-lang/fplotlib/\nhttps://github.com/vmagnin/gtk-fortran/\n\nThe program will plot the Weierstrass function (with a=0.5 and b=3) in the [-5 ; +5] range using fplotlib:\nhttps://en.wikipedia.org/wiki/Weierstrass_function_(nowhere-differentiable_function)\n\nIt will display that plot in a GTK4 window.\n```\n\nThe result:\n\n@vmagnin tell your AI to format the math correctly in the plot title, axes and legend using $$ and latex syntax. It will look beautiful!", "url": "https://wpnews.pro/news/announcing-fplotlib-pure-fortran-plotting-animations-tex-math-and-scientific", "canonical_source": "https://fortran-lang.discourse.group/t/announcing-fplotlib-pure-fortran-plotting-animations-tex-math-and-scientific-reports/11339?page=2#post_23", "published_at": "2026-11-27 09:09:55+00:00", "updated_at": "2026-11-27 09:12:21.973695+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "generative-ai"], "entities": ["fplotlib", "Fortran Package Manager", "fortran-lang", "gtk-fortran", "Mistral AI Code", "Vincent Magnin", "GTK4"], "also_reported_by": [], "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].", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/announcing-fplotlib-pure-fortran-plotting-animations-tex-math-and-scientific", "markdown": "https://wpnews.pro/news/announcing-fplotlib-pure-fortran-plotting-animations-tex-math-and-scientific.md", "text": "https://wpnews.pro/news/announcing-fplotlib-pure-fortran-plotting-animations-tex-math-and-scientific.txt", "jsonld": "https://wpnews.pro/news/announcing-fplotlib-pure-fortran-plotting-animations-tex-math-and-scientific.jsonld"}}