[Celinux-dev] Fun python project (svgchart) free to a good home
Gross, Mark
mark.gross at intel.com
Tue Nov 21 07:58:05 PST 2006
Now, I'm not saying I'll do anything with this but....
If there were some more descriptive requirements or use cases, and
examples of input data and type types of plots that are expected to
squirt out of this code that would help.
Also, what's not finished with this thing? It makes some plots.
>>> from svgchart import *
>>> x.setData(svgchart.linetestdata[1], svgchart.linetestdata[2],
svgchart.linetestdata[3])
>>> x.setLabels(svgchart.linetestdata[0])
>>> x.draw()
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect width="320" height="240" style="fill:black"/>
<polyline points="10,50 60,50 110,30 160,20 210,20 260,25 "
style="stroke:white;stroke-width:2"/>
<polyline points="10,80 60,70 110,65 160,60 210,70 260,130 "
style="stroke:red;stroke-width:2"/>
<polyline points="10,120 60,110 110,105 160,100 210,100 260,90 "
style="stroke:yellow;stroke-width:2"/>
<line x1="10" y1="230" x2="10" y2="240"
style="stroke:white;stroke-width:2"/>
<line x1="60" y1="230" x2="60" y2="240"
style="stroke:white;stroke-width:2"/>
<line x1="110" y1="230" x2="110" y2="240"
style="stroke:white;stroke-width:2"/>
<line x1="160" y1="230" x2="160" y2="240"
style="stroke:white;stroke-width:2"/>
<line x1="210" y1="230" x2="210" y2="240"
style="stroke:white;stroke-width:2"/>
<line x1="260" y1="230" x2="260" y2="240"
style="stroke:white;stroke-width:2"/>
</svg>
Is it only the data API for sucking in data to be graphed?
BTW its missing an ability to handled (x,y) pairs of input data. (The
current line code assumes a fixed step size between x values in the data
list of y values.)
The esthetic quality of plots created in this way are unlikely to be
competitive against the output of other tools that create jpg's or png
images. However; I do believe they will be "good enough" to express
some results.
--mgross
>-----Original Message-----
>From: celinux-dev-bounces at tree.celinuxforum.org
[mailto:celinux-dev-bounces at tree.celinuxforum.org] On
>Behalf Of Tim Bird
>Sent: Monday, November 20, 2006 12:28 PM
>To: CE Linux Developers List
>Subject: [Celinux-dev] Fun python project (svgchart) free to a good
home
>
>Hi all,
>
>I started working on a python program to produce charts
>from python data, directly in SVG (Scalable Vector Graphics)
>format. I'm hoping to use this in the CELF test lab for
>some of the results presentation, but it could be made into
>a very useful general purpose tool, IMHO. We're currently
>using pygdchart for this in the lab, but it has drawbacks.
>
>Unfortunately, I don't have enough time to finish the program.
>If you want to work on this VERY FUN project, please let me
>know. I think that you will find it a very entertaining and
>educational experience. It would make for a great couple
>of hours of hobby programming over Thanksgiving!!
>
>Please see
>http://tree.celinuxforum.org/CelfPubWiki/SVGChart
>for details, and let me know if you are interested.
>
>Regards,
> -- Tim
>=============================
>Tim Bird
>Architecture Group Chair, CE Linux Forum
>Senior Staff Engineer, Sony Electronics
>=============================
>
>_______________________________________________
>Celinux-dev mailing list
>Celinux-dev at tree.celinuxforum.org
>http://tree.celinuxforum.org/mailman/listinfo/celinux-dev
More information about the Celinux-dev
mailing list