SourceForge logo
SourceForge logo
Menu

matplotlib-checkins — Commit notification. DO NOT POST to this list, just subscribe to it.

You can subscribe to this list here.

2007 Jan
Feb
Mar
Apr
May
Jun
Jul
(115)
Aug
(120)
Sep
(137)
Oct
(170)
Nov
(461)
Dec
(263)
2008 Jan
(120)
Feb
(74)
Mar
(35)
Apr
(74)
May
(245)
Jun
(356)
Jul
(240)
Aug
(115)
Sep
(78)
Oct
(225)
Nov
(98)
Dec
(271)
2009 Jan
(132)
Feb
(84)
Mar
(74)
Apr
(56)
May
(90)
Jun
(79)
Jul
(83)
Aug
(296)
Sep
(214)
Oct
(76)
Nov
(82)
Dec
(66)
2010 Jan
(46)
Feb
(58)
Mar
(51)
Apr
(77)
May
(58)
Jun
(126)
Jul
(128)
Aug
(64)
Sep
(50)
Oct
(44)
Nov
(48)
Dec
(54)
2011 Jan
(68)
Feb
(52)
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
(1)
2018 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S
1
(3)
2
(2)
3
(6)
4
(4)
5
(1)
6
7
8
9
10
11
(1)
12
(1)
13
(1)
14
(4)
15
16
(8)
17
(7)
18
(5)
19
20
21
(2)
22
23
(2)
24
25
(2)
26
(6)
27
(3)
28
(2)
29
(2)
30
(2)
31




Showing 5 results of 5

From: <md...@us...> - 2010年08月18日 17:36:59
Revision: 8651
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8651&view=rev
Author: mdboom
Date: 2010年08月18日 17:36:51 +0000 (2010年8月18日)
Log Message:
-----------
Merged revisions 8649-8650 via svnmerge from 
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint
........
 r8649 | mdboom | 2010年08月18日 13:00:29 -0400 (2010年8月18日) | 2 lines
 
 Fix positions of r axis labels when rmin != 0.0 in polar plots.
........
 r8650 | mdboom | 2010年08月18日 13:35:26 -0400 (2010年8月18日) | 2 lines
 
 Fix unit tests for polar rmin changes in last commit.
........
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/projections/polar.py
 trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf
 trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.png
 trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.svg
 trunk/matplotlib/lib/matplotlib/transforms.py
Property Changed:
----------------
 trunk/matplotlib/
Property changes on: trunk/matplotlib
___________________________________________________________________
Modified: svnmerge-integrated
 - /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8647 /trunk/matplotlib:1-7315
 + /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8650 /trunk/matplotlib:1-7315
Modified: trunk/matplotlib/lib/matplotlib/projections/polar.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/projections/polar.py	2010年08月18日 17:35:26 UTC (rev 8650)
+++ trunk/matplotlib/lib/matplotlib/projections/polar.py	2010年08月18日 17:36:51 UTC (rev 8651)
@@ -14,7 +14,7 @@
 from matplotlib.ticker import Formatter, Locator, FormatStrFormatter
 from matplotlib.transforms import Affine2D, Affine2DBase, Bbox, \
 BboxTransformTo, IdentityTransform, Transform, TransformWrapper, \
- ScaledTranslation, blended_transform_factory
+ ScaledTranslation, blended_transform_factory, BboxTransformToMaxOnly
 import matplotlib.spines as mspines
 
 class PolarAxes(Axes):
@@ -41,16 +41,16 @@
 self._axis = axis
 
 def transform(self, tr):
- xy = np.zeros(tr.shape, np.float_)
+ xy = np.empty(tr.shape, np.float_)
 if self._axis is not None:
 rmin = self._axis.viewLim.ymin
 else:
 rmin = 0
 
- t = tr[:, 0:1]
- r = tr[:, 1:2]
- x = xy[:, 0:1]
- y = xy[:, 1:2]
+ t = tr[:, 0:1]
+ r = tr[:, 1:2]
+ x = xy[:, 0:1]
+ y = xy[:, 1:2]
 
 if rmin != 0:
 r = r - rmin
@@ -291,7 +291,8 @@
 # The r-axis labels are put at an angle and padded in the r-direction
 self._r_label1_position = ScaledTranslation(
 22.5, self._rpad,
- blended_transform_factory(Affine2D(), BboxTransformTo(self.viewLim)))
+ blended_transform_factory(
+ Affine2D(), BboxTransformToMaxOnly(self.viewLim)))
 self._yaxis_text1_transform = (
 self._r_label1_position +
 Affine2D().scale(1.0 / 360.0, 1.0) +
@@ -299,7 +300,8 @@
 )
 self._r_label2_position = ScaledTranslation(
 22.5, -self._rpad,
- blended_transform_factory(Affine2D(), BboxTransformTo(self.viewLim)))
+ blended_transform_factory(
+ Affine2D(), BboxTransformToMaxOnly(self.viewLim)))
 self._yaxis_text2_transform = (
 self._r_label2_position +
 Affine2D().scale(1.0 / 360.0, 1.0) +
Modified: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf
===================================================================
--- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf	2010年08月18日 17:35:26 UTC (rev 8650)
+++ trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf	2010年08月18日 17:36:51 UTC (rev 8651)
@@ -15,113 +15,118 @@
 9 0 obj
 << /Filter /FlateDecode /Length 11 0 R >>
 stream
-x\x9C\xED\x9DϮ<?n\xDD\xF7\xF5\xB5L6\xFDWik 1\xE0]\xE2\xB2\xB2r\x90\xC6u\x80\xAC\xFCZyĜշKE];;?\xAF\xAE1\xE3\xF9ޮ\xAE\xAE\x92DR$Ͽ=\xD2\xF9Wg<\xFF\x87\xFE\xFB\x97G8\xC3\xF9wg\xEDM\xFF\xFBe\xFF[rҿ\xC2\xE7\xF5\xF9\xF1\xFA\xDE\xDF\xEB_y\xA4\xEBҕW\xD2M9\xE7וz\xB5\xBD?˽\xBF\xFA\x95K\x88\xAD\xC7v\xB6\xF8*\xA1\xA7q\x85\x91\xF5\xBB1\xBC\xE2u\x85\xFB5\x8E\xA1{c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0\x8Cұ\xD6MId#\xAA\xAD\xE7jw냀Fhy\xAE\xB1\xCA\xC6\xD4b\x9CO/\xBD\xA1@Ib[M\x87\xF5\xB0"D\xC3޾h\xED\x80-\x8C
From: <md...@us...> - 2010年08月18日 17:35:34
Revision: 8650
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8650&view=rev
Author: mdboom
Date: 2010年08月18日 17:35:26 +0000 (2010年8月18日)
Log Message:
-----------
Fix unit tests for polar rmin changes in last commit.
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/projections/polar.py
 branches/v1_0_maint/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf
 branches/v1_0_maint/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.png
 branches/v1_0_maint/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.svg
Modified: branches/v1_0_maint/lib/matplotlib/projections/polar.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/projections/polar.py	2010年08月18日 17:00:29 UTC (rev 8649)
+++ branches/v1_0_maint/lib/matplotlib/projections/polar.py	2010年08月18日 17:35:26 UTC (rev 8650)
@@ -188,7 +188,7 @@
 
 def view_limits(self, vmin, vmax):
 vmin, vmax = self.base.view_limits(vmin, vmax)
- return vmin, vmax
+ return 0, vmax
 
 
 def __init__(self, *args, **kwargs):
Modified: branches/v1_0_maint/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf
===================================================================
--- branches/v1_0_maint/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf	2010年08月18日 17:00:29 UTC (rev 8649)
+++ branches/v1_0_maint/lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.pdf	2010年08月18日 17:35:26 UTC (rev 8650)
@@ -15,113 +15,118 @@
 9 0 obj
 << /Filter /FlateDecode /Length 11 0 R >>
 stream
-x\x9C\xED\x9DϮ<?n\xDD\xF7\xF5\xB5L6\xFDWik 1\xE0]\xE2\xB2\xB2r\x90\xC6u\x80\xAC\xFCZyĜշKE];;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A3\xA5&=K\xB0h\xF7wɑ~\xACJX\xA3]\xD7*i\xBAL\xAB\xB8_r\x8F\xA1\xE5b\x93rN҂\xEC\xF1I\xEF+D\xD1\x8Cl\xCD$"\x97$\xFA\xBAl\xF8IP\xABG\x85,Y\xB9l\xA1\x85(\x97\x86\xDFK\xB1\xFB\xA5%B\xE9U4
-\xF2\xBA\xA4Zܟ\xC3+\xE9iTM\x9B\xE49]\xE6\xFE\x9C\x84\xF1\xB1FTߤXW됰d\xBB[\xB2 \xA0\x8Cұ\xD6MId#\xAA\xAD\xE7jw냀Fhy\xAE\xB1\xCA\xC6\xD4b\x9CO/\xBD\xA1@Ib[M\x87\xF5\xB0"D\xC3޾h\xED\x80-\x8C
From: <md...@us...> - 2010年08月18日 17:00:36
Revision: 8649
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8649&view=rev
Author: mdboom
Date: 2010年08月18日 17:00:29 +0000 (2010年8月18日)
Log Message:
-----------
Fix positions of r axis labels when rmin != 0.0 in polar plots.
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/projections/polar.py
 branches/v1_0_maint/lib/matplotlib/transforms.py
Modified: branches/v1_0_maint/lib/matplotlib/projections/polar.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/projections/polar.py	2010年08月18日 16:09:19 UTC (rev 8648)
+++ branches/v1_0_maint/lib/matplotlib/projections/polar.py	2010年08月18日 17:00:29 UTC (rev 8649)
@@ -14,7 +14,7 @@
 from matplotlib.ticker import Formatter, Locator, FormatStrFormatter
 from matplotlib.transforms import Affine2D, Affine2DBase, Bbox, \
 BboxTransformTo, IdentityTransform, Transform, TransformWrapper, \
- ScaledTranslation, blended_transform_factory
+ ScaledTranslation, blended_transform_factory, BboxTransformToMaxOnly
 import matplotlib.spines as mspines
 
 class PolarAxes(Axes):
@@ -41,16 +41,16 @@
 self._axis = axis
 
 def transform(self, tr):
- xy = np.zeros(tr.shape, np.float_)
+ xy = np.empty(tr.shape, np.float_)
 if self._axis is not None:
 rmin = self._axis.viewLim.ymin
 else:
 rmin = 0
 
- t = tr[:, 0:1]
- r = tr[:, 1:2]
- x = xy[:, 0:1]
- y = xy[:, 1:2]
+ t = tr[:, 0:1]
+ r = tr[:, 1:2]
+ x = xy[:, 0:1]
+ y = xy[:, 1:2]
 
 if rmin != 0:
 r = r - rmin
@@ -188,7 +188,7 @@
 
 def view_limits(self, vmin, vmax):
 vmin, vmax = self.base.view_limits(vmin, vmax)
- return 0, vmax
+ return vmin, vmax
 
 
 def __init__(self, *args, **kwargs):
@@ -290,7 +290,8 @@
 # The r-axis labels are put at an angle and padded in the r-direction
 self._r_label1_position = ScaledTranslation(
 22.5, self._rpad,
- blended_transform_factory(Affine2D(), BboxTransformTo(self.viewLim)))
+ blended_transform_factory(
+ Affine2D(), BboxTransformToMaxOnly(self.viewLim)))
 self._yaxis_text1_transform = (
 self._r_label1_position +
 Affine2D().scale(1.0 / 360.0, 1.0) +
@@ -298,7 +299,8 @@
 )
 self._r_label2_position = ScaledTranslation(
 22.5, -self._rpad,
- blended_transform_factory(Affine2D(), BboxTransformTo(self.viewLim)))
+ blended_transform_factory(
+ Affine2D(), BboxTransformToMaxOnly(self.viewLim)))
 self._yaxis_text2_transform = (
 self._r_label2_position +
 Affine2D().scale(1.0 / 360.0, 1.0) +
Modified: branches/v1_0_maint/lib/matplotlib/transforms.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/transforms.py	2010年08月18日 16:09:19 UTC (rev 8648)
+++ branches/v1_0_maint/lib/matplotlib/transforms.py	2010年08月18日 17:00:29 UTC (rev 8649)
@@ -2107,6 +2107,31 @@
 get_matrix.__doc__ = Affine2DBase.get_matrix.__doc__
 
 
+class BboxTransformToMaxOnly(BboxTransformTo):
+ """
+ :class:`BboxTransformTo` is a transformation that linearly
+ transforms points from the unit bounding box to a given
+ :class:`Bbox` with a fixed upper left of (0, 0).
+ """
+ def __repr__(self):
+ return "BboxTransformToMaxOnly(%s)" % (self._boxout)
+ __str__ = __repr__
+
+ def get_matrix(self):
+ if self._invalid:
+ xmax, ymax = self._boxout.max
+ if DEBUG and (xmax == 0 or ymax == 0):
+ raise ValueError("Transforming to a singular bounding box.")
+ self._mtx = np.array([[xmax, 0.0, 0.0],
+ [ 0.0, ymax, 0.0],
+ [ 0.0, 0.0, 1.0]],
+ np.float_)
+ self._inverted = None
+ self._invalid = 0
+ return self._mtx
+ get_matrix.__doc__ = Affine2DBase.get_matrix.__doc__
+
+
 class BboxTransformFrom(Affine2DBase):
 """
 :class:`BboxTransformFrom` linearly transforms points from a given
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2010年08月18日 16:09:25
Revision: 8648
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8648&view=rev
Author: mdboom
Date: 2010年08月18日 16:09:19 +0000 (2010年8月18日)
Log Message:
-----------
Merged revisions 8647 via svnmerge from 
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint
........
 r8647 | mdboom | 2010年08月18日 12:07:37 -0400 (2010年8月18日) | 2 lines
 
 Fix bug in regular polygon handling
........
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/path.py
Property Changed:
----------------
 trunk/matplotlib/
Property changes on: trunk/matplotlib
___________________________________________________________________
Modified: svnmerge-integrated
 - /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8645 /trunk/matplotlib:1-7315
 + /branches/mathtex:1-7263 /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7253 /branches/v1_0_maint:1-8647 /trunk/matplotlib:1-7315
Modified: trunk/matplotlib/lib/matplotlib/path.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/path.py	2010年08月18日 16:07:37 UTC (rev 8647)
+++ trunk/matplotlib/lib/matplotlib/path.py	2010年08月18日 16:09:19 UTC (rev 8648)
@@ -408,7 +408,7 @@
 # "points-up"
 theta += np.pi / 2.0
 verts = np.concatenate((np.cos(theta), np.sin(theta)), 1)
- codes = np.empty((numVertices,))
+ codes = np.empty((numVertices + 1,))
 codes[0] = cls.MOVETO
 codes[1:-1] = cls.LINETO
 codes[-1] = cls.CLOSEPOLY
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2010年08月18日 16:07:43
Revision: 8647
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8647&view=rev
Author: mdboom
Date: 2010年08月18日 16:07:37 +0000 (2010年8月18日)
Log Message:
-----------
Fix bug in regular polygon handling
Modified Paths:
--------------
 branches/v1_0_maint/lib/matplotlib/path.py
Modified: branches/v1_0_maint/lib/matplotlib/path.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/path.py	2010年08月17日 18:16:21 UTC (rev 8646)
+++ branches/v1_0_maint/lib/matplotlib/path.py	2010年08月18日 16:07:37 UTC (rev 8647)
@@ -408,7 +408,7 @@
 # "points-up"
 theta += np.pi / 2.0
 verts = np.concatenate((np.cos(theta), np.sin(theta)), 1)
- codes = np.empty((numVertices,))
+ codes = np.empty((numVertices + 1,))
 codes[0] = cls.MOVETO
 codes[1:-1] = cls.LINETO
 codes[-1] = cls.CLOSEPOLY
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 5 results of 5

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 によって変換されたページ (->オリジナル) /