https://github.com/seadve/plotters-gtk4
Plotters GTK4 Backend
https://github.com/seadve/plotters-gtk4
gtk gtk-rs gtk4 plotting rust visualization
Last synced: about 1 month ago
JSON representation
Plotters GTK4 Backend
- Host: GitHub
- URL: https://github.com/seadve/plotters-gtk4
- Owner: SeaDve
- License: mit
- Created: 2023-11-02T04:54:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-14T23:45:43.000Z (9 months ago)
- Last Synced: 2025-03-25T18:17:30.188Z (about 2 months ago)
- Topics: gtk, gtk-rs, gtk4, plotting, rust, visualization
- Language: Rust
- Homepage: https://seadve.github.io/plotters-gtk4/plotters_gtk4/
- Size: 1.36 MB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Plotters GTK4
[](https://github.com/SeaDve/plotters-gtk4)
[](https://crates.io/crates/plotters-gtk4)
[](https://docs.rs/plotters-gtk4/)
[](https://github.com/SeaDve/plotters-gtk4/actions/workflows/ci.yml)Plotters GTK4 Backend
This is a third-party backend that allows plotters to operate with GTK4 drawing APIs. For more details, please check the following links:
- For a high-level intro to Plotters, see: [Plotters on crates.io](https://crates.io/crates/plotters)
- Check the main repo at [Plotters repo](https://github.com/38/plotters.git)
- For detailed documentation about this crate, check [plotters-backend on docs.rs](https://docs.rs/plotters-backend/)
- You can also visit Plotters [Homepage](https://plotters-rs.github.io)## Examples
This crate provides two backend flavors:
### Snapshot Backend
This backend is similar to the `CairoBackend` from the [`plotters-cairo`](https://github.com/plotters-rs/plotters-cairo) crate. This is suitable if you are directly drawing to a `GtkSnapshot` or implementing your own widget or paintable.
### Paintable Backend
This is preferred if you simply want to display a plot using `GtkPicture` or any other APIs that accept a `GdkPaintable`.
For a real-world example, [Spicy](https://github.com/SeaDve/spicy), a GTK4 frontend for Ngspice circuit simulator, uses this backend to plot simulation results.
## License
Copyright 2023 Dave Patrick Caberto
This software is subject to the terms of the MIT License. If a copy of the MIT License was not distributed with this file, You can obtain one at [this site](https://opensource.org/license/mit/).