this post was submitted on 03 Jun 2026
28 points (91.2% liked)

Programming

27144 readers
731 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
 

As the title says, which programming language would you agree had the best libraries for visualisation (graphs, 3d models, charts, networks, animations, etc)?

Prefer languages with libraries that have more visulatizaton features than say, ease of using the libraries.

top 14 comments
sorted by: hot top controversial new old
[–] HaraldvonBlauzahn@feddit.org 2 points 2 hours ago* (last edited 1 hour ago)

For certain highly formalized types of diagrams - for example flow charts -, PlantUML is great, and since it uses a textual language, it could be wired to a lot of different programs.

MetaPost ist similar but a bit lower level. It can generate very complex diagrams for arbitrary content.For example, I used it once to draw and publish a globe-like 3D sphere with fields depicting different spherical probability values in it.

Racket, a Scheme descendent, is very nice for elementary graphics - it can output pictures in the REPL of its integrated IDE, DrRacket. And it can output these seamlessly as vector graphics, or into interactive user interfaces, too. It also has an elementary but good graphing package. I have used it for a web app which did some data analysis, presented it as a plot in SVG format in the browser, and provided a PDF for download. Neat!

And then there is Python with Matplotlib. It is made for almost every imaginable visualization of numerical data.

For 3D data, there is VTK, which has bindings for C++, Tcl/Tk, Java, and Python.

And TeX/LaTeX with various graphing packages.

As said, all of these can be used programmatically, and can be included in other systems, as long as the latter can generate text commands which can piped into these special-languages, or library calls.

[–] bricked@feddit.org 1 points 2 hours ago

Typst and LaTeX libraries can be used to create a variety of graphs within a text document, but no animations

[–] technocrit@lemmy.dbzer0.com 2 points 6 hours ago* (last edited 6 hours ago)

I moved from Python to Julia. I primarily generate mathematical images and videos: fractals, chaotic systems, complex functions, etc. I've found Julia to be faster with better libraries for my purposes (eg. VideoIO).

I don't do charts, graphs, etc.. but I imagine Julia has great libraries for that stuff too.

[–] fubarx@lemmy.world 3 points 15 hours ago
[–] muzzle@lemmy.zip 28 points 1 day ago (1 children)

Python had some pretty cool math graph library (matplotlib, plotly, seaborn, silx...), R is also well know for this kind of stuff.

[–] staircase@programming.dev 5 points 19 hours ago

TIL the python plotly library is a wrapper round a JS library of the same name

[–] ryokimball@infosec.pub 21 points 1 day ago (1 children)

Wouldn't JavaScript really take the cake here? Like, Python definitely has some good libraries but JavaScript lives in the browser, interfaces with HTML5 canvas, and is far more popular by the nature of the web.

[–] monomon@programming.dev 2 points 1 hour ago

Svg support is also native, which is great for certain applications.

[–] FizzyOrange@programming.dev 8 points 1 day ago

Depends what you want to do, but for scientific stuff, R or MATLAB.

[–] theherk@lemmy.world 7 points 1 day ago

Manim Community is a community fork of 3blue1brown’s awesome manim visualization library for python.

With all my dislike towards Matlab, it had great plots.

[–] supersquirrel@sopuli.xyz 8 points 1 day ago

Processing at least for 2d stuff.

https://processing.org/

[–] PapstJL4U@lemmy.world 2 points 21 hours ago

js has access to Apache echarts, which has a lot of diagrams and good api and doc with example

Python has access to matplotlib, plotly and more.

Both have the advantage of good support for secondary feature for data gathering and ui.

[–] felsiq@piefed.zip 3 points 1 day ago

Mathematica’s visualizations are good, but this is the first and last positive thing I’ll ever say about it otherwise lmao