Title: Ortho basemap projection with limits crashes · Issue #3497 · matplotlib/matplotlib · GitHub
Open Graph Title: Ortho basemap projection with limits crashes · Issue #3497 · matplotlib/matplotlib
X Title: Ortho basemap projection with limits crashes · Issue #3497 · matplotlib/matplotlib
Description: Basemap documentation states that ortho projection can take ll/ur crnr limits. The following code seems like it should work (mpl 1.4.0), but does not: from mpl_toolkits.basemap import Basemap m = Basemap(projection='ortho',lon_0=0,lat_0=...
Open Graph Description: Basemap documentation states that ortho projection can take ll/ur crnr limits. The following code seems like it should work (mpl 1.4.0), but does not: from mpl_toolkits.basemap import Basemap m = B...
X Description: Basemap documentation states that ortho projection can take ll/ur crnr limits. The following code seems like it should work (mpl 1.4.0), but does not: from mpl_toolkits.basemap import Basemap m = B...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3497
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ortho basemap projection with limits crashes","articleBody":"Basemap documentation states that `ortho` projection can take ll/ur crnr limits. The following code seems like it should work (mpl 1.4.0), but does not:\n\n```\nfrom mpl_toolkits.basemap import Basemap\nm = Basemap(projection='ortho',lon_0=0,lat_0=0,llcrnrlat=-10,llcrnrlon=-10,urcrnrlat=10,urcrnrlon=10)\n```\n\nError:\n\n```\n---------------------------------------------------------------------------\nAttributeError Traceback (most recent call last)\n\u003cipython-input-5-98fbf042abb9\u003e in \u003cmodule\u003e()\n----\u003e 1 m = Basemap(projection='ortho',lon_0=0,lat_0=0,llcrnrlat=-10,llcrnrlon=-10,urcrnrlat=10,urcrnrlon=10)\n\n/Users/mankoff/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.pyc in __init__(self, llcrnrlon, llcrnrlat, urcrnrlon, urcrnrlat, llcrnrx, llcrnry, urcrnrx, urcrnry, width, height, projection, resolution, area_thresh, rsphere, ellps, lat_ts, lat_1, lat_2, lat_0, lon_0, lon_1, lon_2, o_lon_p, o_lat_p, k_0, no_rot, suppress_ticks, satellite_height, boundinglat, fix_aspect, anchor, celestial, round, epsg, ax)\n 1032 self.area_thresh = area_thresh\n 1033 # define map boundary polygon (in lat/lon coordinates)\n-\u003e 1034 blons, blats, self._boundarypolyll, self._boundarypolyxy = self._getmapboundary()\n 1035 self.boundarylats = blats\n 1036 self.boundarylons = blons\n\n/Users/mankoff/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.pyc in _getmapboundary(self)\n 1464 # circular region.\n 1465 thetas = np.linspace(0.,2.*np.pi,2*nx*ny)[:-1]\n-\u003e 1466 rminor = self._height\n 1467 rmajor = self._width\n 1468 x = rmajor*np.cos(thetas) + rmajor\n\nAttributeError: 'Basemap' object has no attribute '_height'\n\u003e /Users/mankoff/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py(1466)_getmapboundary()\n 1465 thetas = np.linspace(0.,2.*np.pi,2*nx*ny)[:-1]\n-\u003e 1466 rminor = self._height\n 1467 rmajor = self._width\n\nipdb\u003e\n```\n","author":{"url":"https://github.com/mankoff","@type":"Person","name":"mankoff"},"datePublished":"2014-09-10T13:41:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/3497/matplotlib/issues/3497"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5225d31d-b71d-e4be-6a6a-ecbd2e665b9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF8A:2C65A3:1895B1A:2152357:6A535CA0 |
| html-safe-nonce | 2ee9f57c94c61d79c6c7ceb7fd7101d8c3b35fd2e18ba19ee5f459edeff52d6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjhBOjJDNjVBMzoxODk1QjFBOjIxNTIzNTc6NkE1MzVDQTAiLCJ2aXNpdG9yX2lkIjoiMzA4MjA0NDgyOTQ2ODk0MTQ3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a9b6291d240afdcb28acc4a040d961cc60c04c146c4b01080b096cc9b3353df5 |
| hovercard-subject-tag | issue:42413547 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/3497/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3cf70a279ce6d53d0674b5ddd4a714031b14578ada9ec6eb0e9eace5c0a2900/matplotlib/matplotlib/issues/3497 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3cf70a279ce6d53d0674b5ddd4a714031b14578ada9ec6eb0e9eace5c0a2900/matplotlib/matplotlib/issues/3497 |
| og:image:alt | Basemap documentation states that ortho projection can take ll/ur crnr limits. The following code seems like it should work (mpl 1.4.0), but does not: from mpl_toolkits.basemap import Basemap m = B... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mankoff |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width