Open ribosomerocker opened 1 year ago
There are currently 2 backends for GTK:
chart-gtk
is the original one that I wrote
chart-gtk2
was a submitted PR back in 2018
Both of these are just small adaptors to get a cairo context in an gtk environment (each approx 100 lines).
I'd be happy to receive a PR for a modern gtk environment.
GTK2 has unfortunately been long abandoned, and gtk2 windows look very out of place. Even programs like GIMP have migrated off of it. And the package we use for the GTK3 backend has incomplete bindings. Here's what the package itself says:
GTK4 has also been released, and only haskell-gi/gi-gtk has support for it. It will be viable to add such a backend, and maybe even deprecate the other ones in the future, because gi-gtk's interface for gtk3 is much better, and as i said before, gtk2 has long been deprecated and abandoned.
Furthermore, after this addition, it would also be helpful to add documentation in the wiki about the gtk backends for interactive plot creation.
Related to #241