Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 520f85a

Browse files
committed
removed a couple of cases of mlab.load
svn path=/branches/v0_99_maint/; revision=7337
1 parent 9f46dc4 commit 520f85a

4 files changed

Lines changed: 12 additions & 14 deletions

File tree

doc/_templates/indexsidebar.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@ <h3>News</h3>
33
<p>Please <a href="http://sourceforge.net/project/project_donations.php?group_id=80706">donate</a>
44
to support matplotlib development.</p>
55

6-
<p>Watch a <a href="http://videolectures.net/mloss08_hunter_mat">video lecture</a> about matplotlib presented at <a href="http://videolectures.net/mloss08_whistler">NIPS 08 Workshop</a> <i>Machine Learning Open Source Software</i></a>.
6+
<p>A release candidate rc1 of matplotlib-0.99.0 is <a href="http://drop.io/xortel1#">available</a> for testing. Please post any bugs to the <a href="http://sourceforge.net/tracker2/?group_id=80706">tracker</a>
77
</p>
88

9-
<p>Nominate matplotlib for a community choice award by clicking the
10-
image below -- suggested category "Best Project for Academia" for
11-
software which "helps you hit the books, analyze global trends, or
12-
just understand the world a little bit better than you did before":
13-
<a href="http://sourceforge.net/community/cca09/nominate/?project_name=matplotlib&project_url=http://sourceforge.net/projects/matplotlib/"><img src="http://sourceforge.net/images/cca/cca_nominate.png" border="0"/></a>
9+
<p>Watch a <a href="http://videolectures.net/mloss08_hunter_mat">video lecture</a> about matplotlib presented at <a href="http://videolectures.net/mloss08_whistler">NIPS 08 Workshop</a> <i>Machine Learning Open Source Software</i></a>.
1410
</p>
1511

16-
1712
<h3>Download</h3>
1813
<p>Current version: <b>{{ version }}</b></p>
1914

doc/api/spine_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ matplotlib spine
44

55

66
:mod:`matplotlib.spine`
7-
======================
7+
========================
88

99
.. automodule:: matplotlib.spine
1010
:members:

doc/pyplots/plotmap.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
# the data is interpolated to the native projection grid.
66
import os
77
from mpl_toolkits.basemap import Basemap, shiftgrid
8-
from pylab import title, colorbar, show, axes, cm, load, arange, figure, \
8+
import numpy as np
9+
10+
from pylab import title, colorbar, show, axes, cm, arange, figure, \
911
text
1012

1113
# read in topo data (on a regular lat/lon grid)
@@ -15,9 +17,9 @@
1517
if not os.path.exists(datadir):
1618
raise SystemExit('You need to download the data with svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/htdocs/screenshots/data/" and set the datadir variable in %s'%__file__)
1719

18-
topoin = load(os.path.join(datadir, 'etopo20data.gz'))
19-
lons = load(os.path.join(datadir, 'etopo20lons.gz'))
20-
lats = load(os.path.join(datadir, 'etopo20lats.gz'))
20+
topoin = np.loadtxt(os.path.join(datadir, 'etopo20data.gz'))
21+
lons = np.loadtxt(os.path.join(datadir, 'etopo20lons.gz'))
22+
lats = np.loadtxt(os.path.join(datadir, 'etopo20lats.gz'))
2123
# shift data so lons go from -180 to 180 instead of 20 to 380.
2224
topoin,lons = shiftgrid(180.,topoin,lons,start=False)
2325

examples/pylab_examples/load_converter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from matplotlib.dates import strpdate2num
2-
from matplotlib.mlab import load
2+
#from matplotlib.mlab import load
3+
import numpy as np
34
from pylab import figure, show
45

5-
dates, closes = load(
6+
dates, closes = np.loadtxt(
67
'../data/msft.csv', delimiter=',',
78
converters={0:strpdate2num('%d-%b-%y')},
89
skiprows=1, usecols=(0,2), unpack=True)

0 commit comments

Comments
 (0)