[Tutor] how to graph percentile -- matplotlib, Inkscape, or what?
Alan Gauld
alan.gauld at btinternet.com
Sat Feb 6 10:15:21 CET 2010
"David" <ldl08 at gmx.net> wrote
> is to create a graph in which on the horizontal axis the student's
> precentile (i.e. performance vis-a-vis her classmates) is indicated by
> means of a needle stuck into the axis:
>
> O (63%)
> |__________________________|______________|
> | |
> 0 100
>
> I suspect that I cannot plot this with matplotlib, and my next best
> guess would be Inkscape, with which I have no scripting experience
> whatsoever.
Why do you think you couldn't do it with matplotlib?
It seems a fairly basic request.
I have no experience with either package but matplotlib is the
first place I'd look for this.
There is also gnuplot which I've used outside Pytthon, but it
could do this too I'm sure.
OTOH It would be fairly easy to roll your own in a vanilla
GUI Canvas widget. Its only a few stratight lines and text after all.
Or even to use a scroll bar or progress bar widget to indicate
the result.
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list