Bugs item #1492588, was opened at 2006-05-21 21:07
Message generated for change (Comment added) made by wobsta
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=442886&aid=1492588&group_id=45430
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Dominic Ford (dcf21)
Assigned to: Nobody/Anonymous (nobody)
Summary: graph.pos method seems broken
Initial Comment:
The attached code snippet works fine with PyX 0.7.1,
but fails with PyX 0.8.1:
------
Traceback (most recent call last):
File "pyx_pos.py", line 19, in ?
x,y = g.pos(x=0,y=0)
File
"/usr/local/lib/python2.4/site-packages/pyx/graph/graph.py",
line 169, in pos
return self.xpos + xaxis.convert(x)*self.width,
self.ypos + yaxis.convert(y)*self.height
File
"/usr/local/lib/python2.4/site-packages/pyx/graph/axis/axis.py",
line 472, in convert
assert self.canvas is not None, self.errorname
AssertionError: x
------
I believe the cause of this is that the syntax of the
method "convert" has changed in the file
graph/axis/axis.py, but the pos method in the file
graph/graph.py has not been updated to reflect this change.
----------------------------------------------------------------------
>Comment By: André Wobst (wobsta)
Date: 2006-05-22 11:46
Message:
Logged In: YES
user_id=405853
Sorry, that's not a bug but a problem due to the anchored axes as introduced
in PyX 0.8 internally. You need to access the axes by g.axes["x"] and
g.axes["y"], since only by that they have access to the graphs internal data
(like the axes ranges ... you can use the original axis instances multiple
times
now). Adjusted the manual in changeset:2769.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=442886&aid=1492588&group_id=45430
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel