10 unstable releases (4 breaking)

0.5.0 Aug 14, 2024
0.4.0 Feb 6, 2024
0.3.5 Nov 19, 2023
0.2.0 Nov 2, 2023
0.1.0 Nov 2, 2023

#92 in Visualization

Download history 124/week @ 2024-08-11 8/week @ 2024-08-18 24/week @ 2024-09-15 51/week @ 2024-09-22 16/week @ 2024-09-29 2/week @ 2024-10-06

553 downloads per month

MIT license

23KB
546 lines

Plotters GTK4

github crates.io docs CI

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:

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.

Dependencies

~16–23MB
~437K SLoC