AshleyYakeley / Truth

Changes and Pinafore projects. Pull requests not accepted.
https://pinafore.info/
GNU General Public License v2.0
32 stars 0 forks source link

UI element for plotting graphs #12

Open AshleyYakeley opened 5 years ago

AshleyYakeley commented 5 years ago

Options:

Discussion from 2016.

AshleyYakeley commented 3 years ago

Some question over different cairo libraries?

AshleyYakeley commented 3 years ago

Making good progress with the "Chart → diagrams → Cairo → GTK" pipeline.

Related: diagrams/diagrams-cairo#76 for that second arrow.

AshleyYakeley commented 3 years ago

Probably best to follow the Haskell types where possible.

Renderable makes sense to be a supertype of various things:

Layout <: Renderable StackedLayout <: Renderable Rectangle <: Renderable etc.

AshleyYakeley commented 3 years ago

Layout is a bit awkward, as there is Layout and LayoutLR, which share a number of fields.

Throughout this module, from a "lens" perspective we are interested in setting or constructing fields, but not getting them. In any case, we certainly want a "default with modifications" approach, rather than having to construct every field of a structure.

AshleyYakeley commented 3 years ago

Could do something like this:

etc.

AshleyYakeley commented 3 years ago

What about different plot scales? Double, Time, Integer, etc.

AshleyYakeley commented 3 years ago
AshleyYakeley commented 1 year ago

Maybe fix "Chart → Cairo", to simplify pipeline.

AshleyYakeley commented 1 year ago

Alternative: create our own approach based on ggplot2, using Cairo.