4 ms·
What did you use for your plotter? I'm in science as well and I'm shopping around for a good Rust library to use for just throwing together a quick plot of some
by whooie 4y ago
What did you use for your plotter? I'm in science as well and I'm shopping around for a good Rust library to use for just throwing together a quick plot of some simulation data. Currently I generate my data in Rust, write it to a numpy format, and look at it later with matplotlib, but as you've said, 3D plots usually end up looking like a slideshow.
- the__alchemist 4y agoI made my own, using WGPU and this basic graphics engine: https://github.com/David-OConnor/graphics_wgpu https://github.com/David-OConnor/graphics_wgpu Note that there's currently no docs or template/examples, and I'm rapidly breaking the API. The surface plots are just meshes of a grid divided into triangles. When I need to manipulate them, I re-gen the meshes from a nested 3D array. So, not a plotting lib at all; a flexible 3d and UI lib. Could probably made usable by others with a basic example of how you interact with the render and UI. Have you tried the Plotter lib? I haven't used it, but looks nice from a skim. https://plotters-rs.github.io/book/basic/draw_3d_plots.html https://plotters-rs.github.io/book/basic/draw_3d_plots.html
- whooie 4y agoWow, very cool. Personally I'm not really interested in trying to go through building something like what you've done for myself, haha. I've come across Plotters before but last time I checked, the documentation was pretty sparse and I didn't really relish the thought of trying to parse though and tweak the examples at that time. It looks like they're gradually filling out the docs now, though, so maybe I'll give it another go.