Please goto https://github.com/JakkuSakura/plotters-gpui for more information.
Due to gpui not being published on crates.io, you need to add the following to your Cargo.toml
:
[dependencies]
plotters-gpui = { git = "https://github.com/JakkuSakura/plotters-gpui" }
If you failed to build on linux due to font-kit, you might need to add the following to your Cargo.toml
:
# because plotters' font-kit might fail
[patch.crates-io]
pathfinder_simd = { git = "https://github.com/theoparis/pathfinder.git" }
plotters = { git = "https://github.com/JakkuSakura/plotters", tag = "v0.3.7-gpui" }
plotters-backend = { git = "https://github.com/JakkuSakura/plotters", tag = "v0.3.7-gpui" }
You might be interested in https://github.com/JakkuSakura/gpui-plot, as it provides interactivity and more stuff on top of plotters-gpui







plotters-gpui try to maintain very good performance compared to that in javascript/python, even better than CPU based plotting libraries
Use the following environment variable to enable Metal Performance HUD:
MTL_HUD_ENABLED=1
Enables the Metal Performance HUD.
MTL_HUD_ENABLED=1 cargo run ...