I'm looking for a Rust equivalent to Python's matplotlib .
Does anyone have suggestions or recommendations?
I’ve seen that Plotlars is quite popular — could it be a good replacement?
There are many alternatives, it may be easier to recommend one if you are more specific in your needs/requirements. In any case, I have used:
which autogenerates python code that relies on matplotlib. So, you run Rust code and get a Python’s matplotlib plot.
There is also gnuplot - very comprehensive.
I like that you can use it both from inside rust - via the gnuplot crate - as well as from the command line, via gnuplot scripts or its own repl.
mathlib have imshow() that allow me to display spectrum of colors by color expression in each pixel (bitmap) ( type of topographic).
Example: simulate tension effect in surface material.
The plotters crate is the most popular Rust native approach (according to lib.rs), and I have enjoyed using it. It is solid library, but you will not find feature parity with matplotlib.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.