Salut Timothée,
On 16/11/11, Timothée Poisot wrote:
> I'm using a dark beamer theme to do my presentations, is there any
> chance PyX can generate graphics with white lines instead of black
> ones? That would be really great.
You can set a default color for a canvas, which is normally black. If
you simply draw lines without specifying color, this color is used.
You simply have to insert your graphics into such a canvas. Here is a
minimal example:
from pyx import *
c = canvas.canvas([color.gray.white])
g = graph.graphxy(width=10)
g.plot(graph.data.function("y(x)=sin(x)", min=0, max=5))
# only for visualisation: draw a black background
#c.fill(path.rect(-3, -3, g.width+6, g.height+6), [color.gray.black])
c.insert(g)
c.writePDFfile()
Michael
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user