Crate plotters_gtk4
source ·Expand description
§Plotters GTK4
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
- Check the main repo at Plotters repo
- For detailed documentation about this crate, check plotters-backend on docs.rs
- You can also visit Plotters Homepage
§Examples
This crate provides two backend flavors:
§Snapshot Backend
This backend is similar to the CairoBackend
from the 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, 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.
Structs§
- A paintable to draw on in
PaintableBackend
. - Backend that draws to an object that implements [
gdk::Paintable
]. - Backend that draws to a [
gtk::Snapshot
].