[cairo] Contributing pyCairoChart
cworth at cworth.org
Tue May 23 14:18:28 PDT 2006
On Tue, 23 May 2006 22:54:22 +0200, Martin Lesser wrote:
> looking for a python-module to create dynamic charts for several weeks
> with no success resulted in creating my own module based on cairo:
Thanks for sharing this. The output looks quite fine, (it's refreshing
to see grid lines that are properly snapped to the device-pixel grid).
And the API looks pretty easy to use too.
I have one question about the API though. I see that you currently
create a chart object with something like:
img = CairoChart.Chart(width=330, height=250, ...)
and then later render it to a PNG image with:
The convenience of rendering to a PNG is nice, but do you also have a
means to render everything to a cairo context created in the standard
pycairo way? It would be quite desirable for your library to be able
target any cairo backend (PDF, SVG, etc.) without requiring specific
support in your library for that.
PS. It would be good for you to make a mention of your software on the
cairographics.org wiki, (at http://cairographics.org/examples
perhaps). In fact, it might make sense to make a whole section for
plot/chart/graph-making things. Other things I'm aware of include the
which can render through cairo (in addition to many other
backends). And an another perl-based cairo charting thing I just
learned of named clicker.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060523/91b4c1ea/attachment.pgp
More information about the cairo