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
2
3
(1)
4
(3)
5
6
7
8
9
(1)
10
(5)
11
(2)
12
(7)
13
(1)
14
15
16
17
(1)
18
(2)
19
(6)
20
(5)
21
(1)
22
23
(2)
24
(2)
25
26
(2)
27
(2)
28
(3)
29
30
(6)
31
(6)





Showing 2 results of 2

From: <ef...@us...> - 2010年05月11日 20:23:11
Revision: 8308
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8308&view=rev
Author: efiring
Date: 2010年05月11日 20:23:04 +0000 (2010年5月11日)
Log Message:
-----------
close bug 2997687: integer overflow problem in Normalize
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/colors.py
Modified: trunk/matplotlib/lib/matplotlib/colors.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colors.py	2010年05月11日 20:00:14 UTC (rev 8307)
+++ trunk/matplotlib/lib/matplotlib/colors.py	2010年05月11日 20:23:04 UTC (rev 8308)
@@ -796,11 +796,13 @@
 elif vmin==vmax:
 result = 0.0 * val
 else:
+ vmin = float(vmin)
+ vmax = float(vmax)
 if clip:
 mask = ma.getmask(val)
 val = ma.array(np.clip(val.filled(vmax), vmin, vmax),
 mask=mask)
- result = (val-vmin) * (1.0/(vmax-vmin))
+ result = (val-vmin) / (vmax-vmin)
 if vtype == 'scalar':
 result = result[0]
 return result
@@ -809,6 +811,10 @@
 if not self.scaled():
 raise ValueError("Not invertible until scaled")
 vmin, vmax = self.vmin, self.vmax
+ if vmin >= vmax:
+ raise ValueError("Inversion requires valid vmax > vmin")
+ vmin = float(vmin)
+ vmax = float(vmax)
 
 if cbook.iterable(value):
 val = ma.asarray(value)
@@ -816,18 +822,17 @@
 else:
 return vmin + value * (vmax - vmin)
 
-
 def autoscale(self, A):
 '''
 Set *vmin*, *vmax* to min, max of *A*.
 '''
- self.vmin = ma.minimum(A)
- self.vmax = ma.maximum(A)
+ self.vmin = ma.min(A)
+ self.vmax = ma.max(A)
 
 def autoscale_None(self, A):
 ' autoscale only None-valued vmin or vmax'
- if self.vmin is None: self.vmin = ma.minimum(A)
- if self.vmax is None: self.vmax = ma.maximum(A)
+ if self.vmin is None: self.vmin = ma.min(A)
+ if self.vmax is None: self.vmax = ma.max(A)
 
 def scaled(self):
 'return true if vmin and vmax set'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8307
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8307&view=rev
Author: jswhit
Date: 2010年05月11日 20:00:14 +0000 (2010年5月11日)
Log Message:
-----------
fix bug in is_land method.
Modified Paths:
--------------
 trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py
Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py
===================================================================
--- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py	2010年05月10日 20:34:33 UTC (rev 8306)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py	2010年05月11日 20:00:14 UTC (rev 8307)
@@ -1603,7 +1603,7 @@
 the GSHHS coastline polygons associated with the class instance.
 Points over lakes inside land regions are not counted as land points.
 """
- if resolution is None: return None
+ if self.resolution is None: return None
 landpt = False
 for poly in self.landpolygons:
 landpt = _geoslib.Point((xpt,ypt)).within(poly)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 2 results of 2

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