Skip to content

Commit 0e821be

Browse files
committed
Fix references to examples after moving them to doc folder
1 parent 0238d9f commit 0e821be

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ is provided under the terms of the [LGPL-2.1-only] license as given in
7474

7575
See https://matplotlib.org/basemap/.
7676

77-
See scripts in `examples` directory for example usage.
77+
See scripts in the `doc/examples` directory for example usage.
7878

7979
Read the FAQ and/or email the matplotlib-users mailing list if you have
8080
problems or questions.

doc/source/users/examples.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Plotting data on a map (Example Gallery)
44
========================================
55

6-
Following are a series of examples that illustrate how to use
7-
Basemap instance methods to plot your data on a map. More examples
8-
are included in the examples directory of the basemap source distribution.
6+
Following are a series of examples that illustrate how to use Basemap
7+
instance methods to plot your data on a map. More examples are included
8+
in the doc/examples directory of the basemap source distribution.
99
There are a number of Basemap instance methods for plotting data:
1010

1111
* :func:`~mpl_toolkits.basemap.Basemap.contour`: draw contour lines.

doc/source/users/figures/hurrtracks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
projection='lcc',lat_1=20.,lat_2=40.,lon_0=-60.,
1313
resolution ='l',area_thresh=1000.)
1414
# read shapefile.
15-
shp_path = os.path.join(*6 * [".."] + ["examples", "huralll020"])
15+
shp_path = os.path.join(*3 * [".."] + ["examples", "huralll020"])
1616
shp_info = m.readshapefile(shp_path,'hurrtracks',drawbounds=False)
1717
# find names of storms that reached Cat 4.
1818
names = []

doc/source/users/figures/plotprecip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# plot rainfall from NWS using special precipitation
99
# colormap used by the NWS, and included in basemap.
1010

11-
ncpath = os.path.join(*6 * [".."] + ["examples", "nws_precip_conus_20061222.nc"])
11+
ncpath = os.path.join(*3 * [".."] + ["examples", "nws_precip_conus_20061222.nc"])
1212
nc = NetCDFFile(ncpath)
1313
# data from http://water.weather.gov/precip/
1414
prcpvar = nc.variables['amountofprecip']

src/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3570,7 +3570,7 @@ def contour(self,x,y,data,*args,**kwargs):
35703570
"region to be consistent with your data, or (if your",
35713571
"data is on a global lat/lon grid) use the shiftdata",
35723572
"method to adjust the data to be consistent with the",
3573-
"map projection region (see examples/shiftdata.py)"]))
3573+
"map projection region (see doc/examples/shiftdata.py)"]))
35743574
# mask for points more than one grid length outside projection limb.
35753575
xx = ma.masked_where(x > 1.e20, x)
35763576
yy = ma.masked_where(y > 1.e20, y)
@@ -3667,7 +3667,7 @@ def contourf(self,x,y,data,*args,**kwargs):
36673667
"region to be consistent with your data, or (if your",
36683668
"data is on a global lat/lon grid) use the shiftgrid",
36693669
"function to adjust the data to be consistent with the",
3670-
"map projection region (see examples/contour_demo.py)"]))
3670+
"map projection region (see doc/examples/contour_demo.py)"]))
36713671
# mask for points more than one grid length outside projection limb.
36723672
xx = ma.masked_where(x > 1.e20, x)
36733673
yy = ma.masked_where(y > 1.e20, y)

src/mpl_toolkits/basemap/cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* A sea surface temperature anomaly colormap: sstanom.
1212
* A stepped-sequential scheme: StepSeq.
1313
14-
Run `examples/show_colormaps.py` to see what these colormaps look like.
14+
Run `doc/examples/show_colormaps.py` to see what these colormaps look like.
1515
"""
1616

1717
from matplotlib import rcParams

0 commit comments

Comments
 (0)