No description
Find a file
2024-02-11 13:57:07 +01:00
.github/workflows [CI] attempt to update CI images & test Nim 2.0 2023-09-10 16:43:58 +02:00
docs update GH actions workflow for docs, add dummy Org doc file 2022-07-25 17:41:25 +02:00
media add a bunch of *super* random test images 2019-05-25 00:14:26 +02:00
src rename fkNone to fkNull to avoid ambiguity with Datamancer fkNone 2024-02-11 13:56:21 +01:00
tests [tests] fix test case for now missing fType 2024-02-11 13:56:21 +01:00
.travis.yml fix chroma dependency, push to version v0.1.1 2019-10-25 15:03:45 +02:00
changelog.org update changelog 2024-02-11 13:56:21 +01:00
ginger.nimble push v0.6.1 2024-02-11 13:57:07 +01:00
LICENSE add MIT license file 2019-05-24 23:54:07 +02:00
nim.cfg add a nim.cfg that sets default backends 2022-11-29 10:29:08 +01:00
README.org add a bunch of *super* random test images 2019-05-25 00:14:26 +02:00

Ginger - a Grid like package in Nim

Ginger is a graphics package similar to R's Grid package, which can be formed as a basis for a graphing library. It will be the foundation of ggplotnim a "port" of ggplot2 for Nim.

The basic idea is to provide basic primitives to draw on a canvas, while providing layering capabilities via Viewports and good handling of different coordinate systems.

The backend of this package currently uses cairo, but as long as a backend can provide a few primitives like drawLine, drawPoint and a few others, a new backend can be added quickly. Thanks to using cairo, we can easily output to png, svg and pdf among others.

NOTE: Still under heavy development!

Test examples

The following examples are not supposed to be pretty, but rather display different aspects of the library. They are basically just the images constructed. The images below are saved as png so they can be embedded in this README.

Setting axes

/rex/ginger/media/branch/master/media/axisCheck.png

Axes and a background

/rex/ginger/media/branch/master/media/debugAxes.png

Embed view into bottom right corner, rotate text

/rex/ginger/media/branch/master/media/testEmbed.png

Test ggplot2 like colors

/rex/ginger/media/branch/master/media/testGGCols.png

Testing nesting of axes

/rex/ginger/media/branch/master/media/testNestedAxes.png

Constructing a whole "plot"

/rex/ginger/media/branch/master/media/testView.png