Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Stefan Schenk <Stefan.Schenk@ph...>  20080710 06:29:04

Hi Mico, Am Mittwoch 09 Juli 2008 23:32 schrieb Mico Filós: > I want to plot some data curves on a graph that contains a filled area. > Imagine for example that in > http://pyx.sourceforge.net/gallery/graphs/integral.py > I want to plot, apart from the curve (x,f(x)) and the area under it, > another curve (x,g(x)). > To define the area I need to finish the graph, to make the paths > available. But then the area covers > my data curves... How could I solve this? > > My feeling is that I am missing something trivial :) > > > figure.plot(graph.data.list(...)) > figure.finish() > > # Define my area > area = ... > figure.fill(area) # The curves are under the area > > I have tried to assign the paths to some variables, to stroke them > after calling figure.finish, > but it does seem to work. You got the correct idea. You have to stroke the paths after you painted the area. However this is not possible after finish() in the same graphxy object. But you can extract the curves from figure and just use a new canvas like in http://pyx.sourceforge.net/gallery/graphs/partialfill.html Greetings, Stefan 