I just started looking at pyx; it looks like a very good balance of power and
sane, good-looking defaults.
Anyway, one of the capabilities I like is filled graphs. So I started
experimenting with graphs/integral and graphs/partialfill in the gallery, and
believe I have come up with something a bit more generic that may be useful for
others as an example. Feel free to put it into the gallery, if you like.
It is basically a recipe for (a) drawing invisible plots in a graph, (b) filling
the area between any two plots in a graph, and (c) moving the fill item to the
back so that it doesn't obscure the actual graph. (c) is done by reordering
graphxy.items -- is there a cleaner way to re-order the components?
These are attached:
- errorarea.pdf - an example showing what I was trying to achieve, a shaded
error area (instead of error bars) around a curve
- bg_graphxy.py, errorarea.py, speed1.dat, speed2.dat - the source of the above
- partialfill2.py, integral2.py - further examples, showing how these current
examples from the gallery are greatly simplified by the bg_graphxy class (it is
not my intention to disparage these gallery examples, I learnt a lot from them)
Hope it's useful to someone.