Revision: 4714
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4714&view=rev
Author: mdboom
Date: 2007-12-12 11:11:44 -0800 (Wed, 12 Dec 2007)
Log Message:
-----------
Code cleanup
Modified Paths:
--------------
branches/transforms/lib/matplotlib/patches.py
Modified: branches/transforms/lib/matplotlib/patches.py
===================================================================
--- branches/transforms/lib/matplotlib/patches.py 2007-12-12 19:07:03 UTC
(rev 4713)
+++ branches/transforms/lib/matplotlib/patches.py 2007-12-12 19:11:44 UTC
(rev 4714)
@@ -993,15 +993,6 @@
self._path = Path.arc(self._theta1, self._theta2)
return Patch.draw(self, renderer)
- # Transforms the axes box_path so that it is relative to the unit
- # circle in the same way that it is relative to the desired
- # ellipse.
- box_path = Path.unit_rectangle()
- box_path_transform = transforms.BboxTransformTo(self.axes.bbox) + \
- self.get_transform().inverted()
- box_path = box_path.transformed(box_path_transform)
- vertices = []
-
def iter_circle_intersect_on_line(x0, y0, x1, y1):
dx = x1 - x0
dy = y1 - y0
@@ -1046,6 +1037,15 @@
if x >= x0e and x <= x1e and y >= y0e and y <= y1e:
yield x, y
+
+ # Transforms the axes box_path so that it is relative to the unit
+ # circle in the same way that it is relative to the desired
+ # ellipse.
+ box_path = Path.unit_rectangle()
+ box_path_transform = transforms.BboxTransformTo(self.axes.bbox) + \
+ self.get_transform().inverted()
+ box_path = box_path.transformed(box_path_transform)
+
PI = npy.pi
TWOPI = PI * 2.0
RAD2DEG = 180.0 / PI
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins