Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/mpl_toolkits/basemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
raise ValueError('orthographic projection only works for perfect spheres - not ellipsoids')
if lat_0 is None or lon_0 is None:
raise ValueError('must specify lat_0 and lon_0 for Orthographic basemap')
if lat_0 == 90 or lat_0 == -90:
if lat_0 == 90 or lat_0 == -90 and\
None in [llcrnrx,llcrnry,urcrnrx,urcrnry]:
# for ortho plot centered on pole, set boundinglat to equator.
# (so meridian labels can be drawn in this special case).
self.boundinglat = 0
Expand Down Expand Up @@ -2374,7 +2375,7 @@ def addlon(meridians,madd):
linecolls[k] = _tup(linecolls[k])
# override __delitem__ in dict to call remove() on values.
meridict = _dict(linecolls)
# clip meridian lines and label them.
# for round polar plots, clip meridian lines and label them.
if self.round:
if self.clipcircle not in ax.patches:
p = ax.add_patch(self.clipcircle)
Expand Down