Revision: 4777
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4777&view=rev
Author: mdboom
Date: 2007-12-20 05:00:48 -0800 (Thu, 20 Dec 2007)
Log Message:
-----------
Minor bugfix in polar transforms.
Modified Paths:
--------------
branches/transforms/lib/matplotlib/projections/polar.py
Modified: branches/transforms/lib/matplotlib/projections/polar.py
===================================================================
--- branches/transforms/lib/matplotlib/projections/polar.py 2007-12-20
13:00:20 UTC (rev 4776)
+++ branches/transforms/lib/matplotlib/projections/polar.py 2007-12-20
13:00:48 UTC (rev 4777)
@@ -66,7 +66,7 @@
transform_path_non_affine.__doc__ =
Transform.transform_path_non_affine.__doc__
def inverted(self):
- return PolarAxes.InvertedPolarTransform()
+ return PolarAxes.InvertedPolarTransform(self._resolution)
inverted.__doc__ = Transform.inverted.__doc__
class PolarAffine(Affine2DBase):
@@ -107,6 +107,10 @@
output_dims = 2
is_separable = False
+ def __init__(self, resolution):
+ Transform.__init__(self)
+ self._resolution = resolution
+
def transform(self, xy):
x = xy[:, 0:1]
y = xy[:, 1:]
@@ -117,7 +121,7 @@
transform.__doc__ = Transform.transform.__doc__
def inverted(self):
- return PolarAxes.PolarTransform()
+ return PolarAxes.PolarTransform(self._resolution)
inverted.__doc__ = Transform.inverted.__doc__
class ThetaFormatter(Formatter):
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