Skip to content

Commit 2e392ea

Browse files
author
Jeff Whitaker
committed
fix so round is not set to True for polar ortho maps when map corners
are specified.
1 parent 4a03296 commit 2e392ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ def __init__(self, llcrnrlon=None, llcrnrlat=None,
585585
raise ValueError('orthographic projection only works for perfect spheres - not ellipsoids')
586586
if lat_0 is None or lon_0 is None:
587587
raise ValueError('must specify lat_0 and lon_0 for Orthographic basemap')
588-
if lat_0 == 90 or lat_0 == -90:
588+
if lat_0 == 90 or lat_0 == -90 and\
589+
None in [llcrnrx,llcrnry,urcrnrx,urcrnry]:
589590
# for ortho plot centered on pole, set boundinglat to equator.
590591
# (so meridian labels can be drawn in this special case).
591592
self.boundinglat = 0

0 commit comments

Comments
 (0)