Hi Stefan,
On Wed, May 20, 2009 at 04:30:35PM +0200, Stefan Schenk wrote:
> 
> Am Mittwoch 20 Mai 2009 16:01 schrieb Aurelien Mazurie:
> >     Thank you! That's exactly what I was looking for. May I suggest to
> > add this in the FAQ?
> 
> I agree that this problem belongs to the FAQ or the examples pages. 
> However, my solution fumbles with some pyx.graph internals, so i am not 
> sure whether it is the best solution or if it has unwanted side effects.
well, I believe the easiest is:
from pyx import *

g = graph.graphxy(width=8, x=graph.axis.bar(), x2 = None, y2 = None)
g.plot(graph.data.file("minimal.dat", xname=0, y=2),[graph.style.bar()])

g.writeEPSfile("Graph_without_Box")


That's even two lines shorter and avoids internal features (well, if
someone can guarantee us that it will be ok to pass "None" as graph-axis
also in future pyx-releases ;-))....

Axel

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to