[Popcon-developers] improving the graph on the static pages of popcon.debian.org

Stéphane Blondon stephane.blondon at gmail.com
Thu Jul 9 01:57:52 UTC 2015


Hello,

in the end of 2013 and the beginning of 2014, I helped to update the
CSS of popcon.debian.org and others minor texts in the html pages.
However, the problem of cropped graphs due to a lot of CPU
architectures was not solved because no good fixes were found.
Example of cropped picture: http://popcon.debian.org/stat/release.png

I discovered few days ago that Matplotlib (a tool to produce graphs
with Python) can fix this problem easily. You can see an example and
the source code used to create it.

Matplotlib exists for Python version 2 and 3.

I know that the current script to create the static pages is written
in Perl (http://anonscm.debian.org/gitweb/?p=popcon/popcon.git;a=blob;f=examples/bin/popcon.pl;hb=HEAD)
and the pictures were generated by libchart-perl.

- Do you think it's would be nice and/or easy to replace libchart-perl
by matplotlib?
- Do you want I try to do it? Perhaps it will requiree to replace the
html static pages by a python script too?


I think the first step is to try to render graphs with the same data
like the Perl script in order to have a better comparison
lobchart-perle vs matplotlib. What do you think about that too?


Cheers
-- 
Stéphane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.png
Type: image/png
Size: 179795 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/popcon-developers/attachments/20150709/523dde6a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.py
Type: text/x-python
Size: 567 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/popcon-developers/attachments/20150709/523dde6a/attachment-0001.py>


More information about the Popcon-developers mailing list