We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44fb032 commit 5493f61Copy full SHA for 5493f61
proplot/subplots.py
@@ -2249,10 +2249,20 @@ def subplots(
2249
# Custom Basemap and Cartopy axes
2250
else:
2251
package = 'basemap' if basemap[num] else 'geo'
2252
- obj, iaspect = projs.Proj(
2253
- name, basemap=basemap[num], **proj_kw[num])
+ obj = projs.Proj(
+ name, basemap=basemap[num], **proj_kw[num]
2254
+ )
2255
if num == ref:
- aspect = iaspect
2256
+ if basemap[num]:
2257
+ aspect = (
2258
+ (proj.urcrnrx - proj.llcrnrx)
2259
+ / (proj.urcrnry - proj.llcrnry)
2260
2261
+ else:
2262
2263
+ np.diff(proj.x_limits)
2264
+ / np.diff(proj.y_limits)
2265
+ )[0]
2266
axes_kw[num].update({'projection': package, 'map_projection': obj})
2267
2268
# Figure and/or axes dimensions
0 commit comments