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
(5) |
4
(1) |
5
|
6
|
7
(6) |
8
(3) |
9
(7) |
10
(6) |
11
(14) |
12
(6) |
13
(10) |
14
(6) |
15
|
16
|
17
(15) |
18
(6) |
19
(1) |
20
(4) |
21
(8) |
22
(9) |
23
(12) |
24
(35) |
25
(21) |
26
(14) |
27
(11) |
28
(9) |
29
(11) |
30
(6) |
31
(9) |
|
|
Revision: 5712 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5712&view=rev Author: efiring Date: 2008年07月04日 12:20:43 -0700 (2008年7月04日) Log Message: ----------- fix numpy, ma imports in geo.py Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/projections/geo.py Modified: trunk/matplotlib/lib/matplotlib/projections/geo.py =================================================================== --- trunk/matplotlib/lib/matplotlib/projections/geo.py 2008年07月03日 16:08:52 UTC (rev 5711) +++ trunk/matplotlib/lib/matplotlib/projections/geo.py 2008年07月04日 19:20:43 UTC (rev 5712) @@ -1,7 +1,7 @@ import math -import numpy as npy -from matplotlib.numerix import npyma as ma +import numpy as np +import numpy.ma as ma import matplotlib rcParams = matplotlib.rcParams @@ -27,7 +27,7 @@ self._round_to = round_to def __call__(self, x, pos=None): - degrees = (x / npy.pi) * 180.0 + degrees = (x / np.pi) * 180.0 degrees = round(degrees / self._round_to) * self._round_to # \u00b0 : degree symbol return u"%d\u00b0" % degrees @@ -47,8 +47,8 @@ self.grid(rcParams['axes.grid']) - Axes.set_xlim(self, -npy.pi, npy.pi) - Axes.set_ylim(self, -npy.pi / 2.0, npy.pi / 2.0) + Axes.set_xlim(self, -np.pi, np.pi) + Axes.set_ylim(self, -np.pi / 2.0, np.pi / 2.0) def _set_lim_and_transforms(self): # A (possibly non-linear) projection on the (already scaled) data @@ -83,7 +83,7 @@ Affine2D().translate(0.0, -4.0) # This is the transform for latitude ticks. - yaxis_stretch = Affine2D().scale(npy.pi * 2.0, 1.0).translate(-npy.pi, 0.0) + yaxis_stretch = Affine2D().scale(np.pi * 2.0, 1.0).translate(-np.pi, 0.0) yaxis_space = Affine2D().scale(1.0, 1.1) self._yaxis_transform = \ yaxis_stretch + \ @@ -103,8 +103,8 @@ def _get_affine_transform(self): transform = self._get_core_transform(1) - xscale, _ = transform.transform_point((npy.pi, 0)) - _, yscale = transform.transform_point((0, npy.pi / 2.0)) + xscale, _ = transform.transform_point((np.pi, 0)) + _, yscale = transform.transform_point((0, np.pi / 2.0)) return Affine2D() \ .scale(0.5 / xscale, 0.5 / yscale) \ .translate(0.5, 0.5) @@ -137,15 +137,15 @@ set_xscale = set_yscale def set_xlim(self, *args, **kwargs): - Axes.set_xlim(self, -npy.pi, npy.pi) - Axes.set_ylim(self, -npy.pi / 2.0, npy.pi / 2.0) + Axes.set_xlim(self, -np.pi, np.pi) + Axes.set_ylim(self, -np.pi / 2.0, np.pi / 2.0) set_ylim = set_xlim def format_coord(self, long, lat): 'return a format string formatting the coordinate' - long = long * (180.0 / npy.pi) - lat = lat * (180.0 / npy.pi) + long = long * (180.0 / np.pi) + lat = lat * (180.0 / np.pi) if lat >= 0.0: ns = 'N' else: @@ -163,7 +163,7 @@ number = (360.0 / degrees) + 1 self.xaxis.set_major_locator( FixedLocator( - npy.linspace(-npy.pi, npy.pi, number, True)[1:-1])) + np.linspace(-np.pi, np.pi, number, True)[1:-1])) self._logitude_degrees = degrees self.xaxis.set_major_formatter(self.ThetaFormatter(degrees)) @@ -174,7 +174,7 @@ number = (180.0 / degrees) + 1 self.yaxis.set_major_locator( FixedLocator( - npy.linspace(-npy.pi / 2.0, npy.pi / 2.0, number, True)[1:-1])) + np.linspace(-np.pi / 2.0, np.pi / 2.0, number, True)[1:-1])) self._latitude_degrees = degrees self.yaxis.set_major_formatter(self.ThetaFormatter(degrees)) @@ -182,7 +182,7 @@ """ Set the latitude(s) at which to stop drawing the longitude grids. """ - self._longitude_cap = degrees * (npy.pi / 180.0) + self._longitude_cap = degrees * (np.pi / 180.0) self._xaxis_pretransform \ .clear() \ .scale(1.0, self._longitude_cap * 2.0) \ @@ -238,19 +238,19 @@ # Pre-compute some values half_long = longitude / 2.0 - cos_latitude = npy.cos(latitude) + cos_latitude = np.cos(latitude) - alpha = npy.arccos(cos_latitude * npy.cos(half_long)) + alpha = np.arccos(cos_latitude * np.cos(half_long)) # Mask this array, or we'll get divide-by-zero errors alpha = ma.masked_where(alpha == 0.0, alpha) # We want unnormalized sinc. numpy.sinc gives us normalized sinc_alpha = ma.sin(alpha) / alpha - x = (cos_latitude * npy.sin(half_long)) / sinc_alpha - y = (npy.sin(latitude) / sinc_alpha) + x = (cos_latitude * np.sin(half_long)) / sinc_alpha + y = (np.sin(latitude) / sinc_alpha) x.set_fill_value(0.0) y.set_fill_value(0.0) - return npy.concatenate((x.filled(), y.filled()), 1) + return np.concatenate((x.filled(), y.filled()), 1) transform.__doc__ = Transform.transform.__doc__ transform_non_affine = transform @@ -288,7 +288,7 @@ inverted.__doc__ = Transform.inverted.__doc__ def __init__(self, *args, **kwargs): - self._longitude_cap = npy.pi / 2.0 + self._longitude_cap = np.pi / 2.0 GeoAxes.__init__(self, *args, **kwargs) self.set_aspect(0.5, adjustable='box', anchor='C') self.cla() @@ -323,13 +323,13 @@ # Pre-compute some values half_long = longitude / 2.0 - cos_latitude = npy.cos(latitude) - sqrt2 = npy.sqrt(2.0) + cos_latitude = np.cos(latitude) + sqrt2 = np.sqrt(2.0) - alpha = 1.0 + cos_latitude * npy.cos(half_long) - x = (2.0 * sqrt2) * (cos_latitude * npy.sin(half_long)) / alpha - y = (sqrt2 * npy.sin(latitude)) / alpha - return npy.concatenate((x, y), 1) + alpha = 1.0 + cos_latitude * np.cos(half_long) + x = (2.0 * sqrt2) * (cos_latitude * np.sin(half_long)) / alpha + y = (sqrt2 * np.sin(latitude)) / alpha + return np.concatenate((x, y), 1) transform.__doc__ = Transform.transform.__doc__ transform_non_affine = transform @@ -363,10 +363,10 @@ quarter_x = 0.25 * x half_y = 0.5 * y - z = npy.sqrt(1.0 - quarter_x*quarter_x - half_y*half_y) - longitude = 2 * npy.arctan((z*x) / (2.0 * (2.0*z*z - 1.0))) - latitude = npy.arcsin(y*z) - return npy.concatenate((longitude, latitude), 1) + z = np.sqrt(1.0 - quarter_x*quarter_x - half_y*half_y) + longitude = 2 * np.arctan((z*x) / (2.0 * (2.0*z*z - 1.0))) + latitude = np.arcsin(y*z) + return np.concatenate((longitude, latitude), 1) transform.__doc__ = Transform.transform.__doc__ def inverted(self): @@ -374,7 +374,7 @@ inverted.__doc__ = Transform.inverted.__doc__ def __init__(self, *args, **kwargs): - self._longitude_cap = npy.pi / 2.0 + self._longitude_cap = np.pi / 2.0 GeoAxes.__init__(self, *args, **kwargs) self.set_aspect(0.5, adjustable='box', anchor='C') self.cla() @@ -407,11 +407,11 @@ longitude = ll[:, 0:1] latitude = ll[:, 1:2] - aux = 2.0 * npy.arcsin((2.0 * latitude) / npy.pi) - x = (2.0 * npy.sqrt(2.0) * longitude * npy.cos(aux)) / npy.pi - y = (npy.sqrt(2.0) * npy.sin(aux)) + aux = 2.0 * np.arcsin((2.0 * latitude) / np.pi) + x = (2.0 * np.sqrt(2.0) * longitude * np.cos(aux)) / np.pi + y = (np.sqrt(2.0) * np.sin(aux)) - return npy.concatenate((x, y), 1) + return np.concatenate((x, y), 1) transform.__doc__ = Transform.transform.__doc__ transform_non_affine = transform @@ -449,7 +449,7 @@ inverted.__doc__ = Transform.inverted.__doc__ def __init__(self, *args, **kwargs): - self._longitude_cap = npy.pi / 2.0 + self._longitude_cap = np.pi / 2.0 GeoAxes.__init__(self, *args, **kwargs) self.set_aspect(0.5, adjustable='box', anchor='C') self.cla() @@ -485,22 +485,22 @@ latitude = ll[:, 1:2] clong = self._center_longitude clat = self._center_latitude - cos_lat = npy.cos(latitude) - sin_lat = npy.sin(latitude) + cos_lat = np.cos(latitude) + sin_lat = np.sin(latitude) diff_long = longitude - clong - cos_diff_long = npy.cos(diff_long) + cos_diff_long = np.cos(diff_long) inner_k = (1.0 + - npy.sin(clat)*sin_lat + - npy.cos(clat)*cos_lat*cos_diff_long) + np.sin(clat)*sin_lat + + np.cos(clat)*cos_lat*cos_diff_long) # Prevent divide-by-zero problems - inner_k = npy.where(inner_k == 0.0, 1e-15, inner_k) - k = npy.sqrt(2.0 / inner_k) - x = k*cos_lat*npy.sin(diff_long) - y = k*(npy.cos(clat)*sin_lat - - npy.sin(clat)*cos_lat*cos_diff_long) + inner_k = np.where(inner_k == 0.0, 1e-15, inner_k) + k = np.sqrt(2.0 / inner_k) + x = k*cos_lat*np.sin(diff_long) + y = k*(np.cos(clat)*sin_lat - + np.sin(clat)*cos_lat*cos_diff_long) - return npy.concatenate((x, y), 1) + return np.concatenate((x, y), 1) transform.__doc__ = Transform.transform.__doc__ transform_non_affine = transform @@ -538,18 +538,18 @@ y = xy[:, 1:2] clong = self._center_longitude clat = self._center_latitude - p = npy.sqrt(x*x + y*y) - p = npy.where(p == 0.0, 1e-9, p) - c = 2.0 * npy.arcsin(0.5 * p) - sin_c = npy.sin(c) - cos_c = npy.cos(c) + p = np.sqrt(x*x + y*y) + p = np.where(p == 0.0, 1e-9, p) + c = 2.0 * np.arcsin(0.5 * p) + sin_c = np.sin(c) + cos_c = np.cos(c) - lat = npy.arcsin(cos_c*npy.sin(clat) + - ((y*sin_c*npy.cos(clat)) / p)) - long = clong + npy.arctan( - (x*sin_c) / (p*npy.cos(clat)*cos_c - y*npy.sin(clat)*sin_c)) + lat = np.arcsin(cos_c*np.sin(clat) + + ((y*sin_c*np.cos(clat)) / p)) + long = clong + np.arctan( + (x*sin_c) / (p*np.cos(clat)*cos_c - y*np.sin(clat)*sin_c)) - return npy.concatenate((long, lat), 1) + return np.concatenate((long, lat), 1) transform.__doc__ = Transform.transform.__doc__ def inverted(self): @@ -560,7 +560,7 @@ inverted.__doc__ = Transform.inverted.__doc__ def __init__(self, *args, **kwargs): - self._longitude_cap = npy.pi / 2.0 + self._longitude_cap = np.pi / 2.0 self._center_longitude = kwargs.pop("center_longitude", 0.0) self._center_latitude = kwargs.pop("center_latitude", 0.0) GeoAxes.__init__(self, *args, **kwargs) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.