SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Alan S. <al...@fr...> - 2006年04月21日 17:17:35
Hi All,
I have a problem plotting text on a graph that's been rotated using an 
Affine transform. I think I can demonstrate the cause of the problem 
with the following code snippet.
###
from matplotlib.transforms import Affine, Value
a = Affine(Value(1), Value(1), Value(-1), Value(1), Value(0), Value(0))
xy = (123, 456)
print a.inverse_xy_tup(a.xy_tup(xy))
###
Result is not 123, 456 as I expect but -456, 456.
I think the problem is in _transform.cpp. This patch (from HEAD revision 
in SVN) gives the correct result.
1704,1705c1704,1705
< _ibval = scale*_cval;
< _icval = -scale*_bval;
---
 > _ibval = -scale*_bval;
 > _icval = -scale*_cval;
Thanks,
Alan
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /