From: David Barton <david.barton.99@br...> - 2004-05-19 15:58:54
Firstly, THANKS FOR PYX! I've been using GLE until now and PYX is so
I seem to have encountered a slight bug (or it might just be me ;-).
When I make a graph and write it out to a file, specifying a different
bounding box, the fonts in the output are rather strange (looks like
tex's typerwriter font) UNLESS I call finish first.
e.g. the following code produces the wrong output unless I uncomment the
finish line. It also works correctly if, instead of calling finish, I
call writeEPSfile twice.
from pyx import *
from pyx import bbox
g = graph.graphxy(width=15,
Any thoughts anyone? Or is this just the result of a strange
configuration on my computer?
Bristol Centre for Applied Nonlinear Maths
Department of Engineering Mathematics
University of Bristol, UK
Tel: 0117 3317067
Mob: 07811 744609
On 19.05.04, David Barton wrote:
> Firstly, THANKS FOR PYX! I've been using GLE until now and PYX is so
> much nicer.
Hey, originally we had also been using GLE - until we were really
tired of it's bugs and shortcomings...
> I seem to have encountered a slight bug (or it might just be me ;-).
> When I make a graph and write it out to a file, specifying a different
> bounding box, the fonts in the output are rather strange (looks like
> tex's typerwriter font) UNLESS I call finish first.
Thanks for reporting this bug. Try applying the following patch, which
I've just checked into CVS.
--- pyx/graph/graph.py 6 May 2004 13:07:06 -0000 1.8
+++ pyx/graph/graph.py 24 May 2004 07:49:04 -0000
@@ -416,6 +416,10 @@
+ def prolog(self):
+ return canvas.canvas.prolog(self)
def outputPS(self, file):
Get latest updates about Open Source Projects, Conferences and News.