Skip to content

Commit

Permalink
Merge pull request #1178 from dopplershift/fixes
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
QuLogic authored Nov 13, 2018
2 parents b136155 + c8d30f1 commit 411d8c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ deploy:
upload_docs: false
on:
repo: SciTools/cartopy
condition: $PYTHON_VERSION=="3.6"
condition: $NAME == "Latest everything"*
tags: true
4 changes: 2 additions & 2 deletions lib/cartopy/io/shapereader.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
>>> records = list(reader.records())
>>> print(type(records[0]))
<class 'cartopy.io.shapereader.Record'>
>>> print(sorted(records[0].attributes.keys()))
['comment', ... 'name', 'name_alt', ... 'region', ...]
>>> print(', '.join(str(r) for r in sorted(records[0].attributes.keys())))
comment, ... name, name_alt, ... region, ...
>>> print(records[0].attributes['name'])
Niagara Falls
>>> geoms = list(reader.geometries())
Expand Down
8 changes: 4 additions & 4 deletions lib/cartopy/mpl/geoaxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,18 @@ class GeoAxes(matplotlib.axes.Axes):
when created with the *projection* keyword. For example::
# Set up a standard map for latlon data.
geo_axes = pyplot.axes(projection=cartopy.crs.PlateCarree())
geo_axes = plt.axes(projection=cartopy.crs.PlateCarree())
# Set up an OSGB map.
geo_axes = pyplot.subplot(2, 2, 1, projection=cartopy.crs.OSGB())
geo_axes = plt.subplot(2, 2, 1, projection=cartopy.crs.OSGB())
When a source projection is provided to one of it's plotting methods,
using the *transform* keyword, the standard Matplotlib plot result is
transformed from source coordinates to the target projection. For example::
# Plot latlon data on an OSGB map.
pyplot.axes(projection=cartopy.crs.OSGB())
pyplot.contourf(x, y, data, transform=cartopy.crs.PlateCarree())
plt.axes(projection=cartopy.crs.OSGB())
plt.contourf(x, y, data, transform=cartopy.crs.PlateCarree())
"""
def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit 411d8c6

Please sign in to comment.