Salut Patrik,

On 05.02.09, Patrik Jonsson wrote:
> The strategy I'm using is based on the "integral" example, ie:
> 
> plot lines
> retrieve paths from plotitems
> create closed paths and fill them

> However, I'm running into some problems. The first is setting the color of
> the lines

> The second problem is that it's my understanding that to get the paths out
> of the plot, you need to finish it. But then you can't plot to it again, so
> at that point it's too late to add the shaded region?

Given that you want to have complete control over the colours, I would
suggest a different "strategy":

1. Define the colours of the main and secondary lines
2. In a loop draw these lines (also the secondary) with the colours
   and styles specified explicitly.
3. Use graph.graphxy.finish() and retrieve the paths from plotitems
4. Draw the closed paths on a second canvas
5. Insert the graph into that canvas (make sure that the background is
   transparent.

That solves both of your problems, I think.

Cordialement,
  Michael


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to