SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 3981
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3981&view=rev
Author: mdboom
Date: 2007年10月23日 07:23:19 -0700 (2007年10月23日)
Log Message:
-----------
Decreasing polar interpolation resolution.
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年10月21日 21:19:51 UTC (rev 3980)
+++ branches/transforms/lib/matplotlib/projections/polar.py	2007年10月23日 14:23:19 UTC (rev 3981)
@@ -151,7 +151,7 @@
 def refresh(self):
 return self.base.refresh()
 
- RESOLUTION = 100
+ RESOLUTION = 50
 
 def __init__(self, *args, **kwargs):
 """
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 4018
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4018&view=rev
Author: mdboom
Date: 2007年10月26日 11:04:51 -0700 (2007年10月26日)
Log Message:
-----------
Fix polar plot title so it doesn't clash with 90 degree value.
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年10月26日 18:00:23 UTC (rev 4017)
+++ branches/transforms/lib/matplotlib/projections/polar.py	2007年10月26日 18:04:51 UTC (rev 4018)
@@ -175,6 +175,8 @@
 self.grid(rcParams['polaraxes.grid'])
 self.xaxis.set_ticks_position('none')
 self.yaxis.set_ticks_position('none')
+
+ self.title.set_y(1.06)
 
 def _set_lim_and_transforms(self):
 	self.dataLim = Bbox.unit()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 4247
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4247&view=rev
Author: mdboom
Date: 2007年11月13日 08:08:33 -0800 (2007年11月13日)
Log Message:
-----------
Bugfix for polar plots.
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年11月13日 16:08:24 UTC (rev 4246)
+++ branches/transforms/lib/matplotlib/projections/polar.py	2007年11月13日 16:08:33 UTC (rev 4247)
@@ -357,8 +357,9 @@
 
 set_rgrids.__doc__ = cbook.dedent(set_rgrids.__doc__) % kwdocd
 
- def set_xscale(self, *args, **kwargs):
- raise NotImplementedError("You can not set the xscale on a polar plot.")
+ def set_xscale(self, scale, *args, **kwargs):
+ if scale != 'linear':
+ raise NotImplementedError("You can not set the xscale on a polar plot.")
 
 def set_xlim(self, *args, **kargs):
 # The xlim is fixed, no matter what you do
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 4761
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4761&view=rev
Author: mdboom
Date: 2007年12月17日 10:29:04 -0800 (2007年12月17日)
Log Message:
-----------
Minor speed improvement
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月17日 18:28:03 UTC (rev 4760)
+++ branches/transforms/lib/matplotlib/projections/polar.py	2007年12月17日 18:29:04 UTC (rev 4761)
@@ -310,7 +310,7 @@
 ACCEPTS: sequence of floats
 """
 angles = npy.asarray(angles, npy.float_)
- self.set_xticks((angles / 180.0) * npy.pi)
+ self.set_xticks(angles * (npy.pi / 180.0))
 if labels is not None:
 self.set_xticklabels(labels)
 if frac is not None:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 4777
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4777&view=rev
Author: mdboom
Date: 2007年12月20日 05:00:48 -0800 (2007年12月20日)
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.
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 によって変換されたページ (->オリジナル) /