Title: Regression: imshow on geo axes produces an empty plot in matplotlib 2.0.0 · Issue #7903 · matplotlib/matplotlib · GitHub
Open Graph Title: Regression: imshow on geo axes produces an empty plot in matplotlib 2.0.0 · Issue #7903 · matplotlib/matplotlib
X Title: Regression: imshow on geo axes produces an empty plot in matplotlib 2.0.0 · Issue #7903 · matplotlib/matplotlib
Description: Bug summary In Matplotlib 1.5.3, it was possible to use imshow on geo axes (e.g. the mollweide projection defined in matplotlib.projections.geo. In Matplotlib 2.0.0, this produces a blank plot. Code for reproduction Here is an example th...
Open Graph Description: Bug summary In Matplotlib 1.5.3, it was possible to use imshow on geo axes (e.g. the mollweide projection defined in matplotlib.projections.geo. In Matplotlib 2.0.0, this produces a blank plot. Cod...
X Description: Bug summary In Matplotlib 1.5.3, it was possible to use imshow on geo axes (e.g. the mollweide projection defined in matplotlib.projections.geo. In Matplotlib 2.0.0, this produces a blank plot. Cod...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7903
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression: imshow on geo axes produces an empty plot in matplotlib 2.0.0","articleBody":"**Bug summary**\r\n\r\nIn Matplotlib 1.5.3, it was possible to use `imshow` on geo axes (e.g. the mollweide projection defined in `matplotlib.projections.geo`. In Matplotlib 2.0.0, this produces a blank plot.\r\n\r\n**Code for reproduction**\r\n\r\nHere is an example that worked in 1.5.3.\r\n\r\n```python\r\nfrom matplotlib import pyplot as plt\r\nimport numpy as np\r\n\r\nlon = np.linspace(-np.pi, np.pi)\r\nlat = np.linspace(-np.pi/2, np.pi/2)\r\nlon, lat = np.meshgrid(lon, lat)\r\n\r\nax = plt.axes(projection='mollweide')\r\nax.grid()\r\nax.imshow(lon, extent=[-np.pi, np.pi, -np.pi/2, np.pi/2], aspect=ax.get_aspect())\r\nplt.savefig('test.png')\r\n```\r\n\r\n**Actual outcome**\r\n\r\nThis is the output on Matplotlib 2.0.0: blank axes.\r\n\r\n\r\n**Expected outcome**\r\n\r\nThis was the output in Matplotlib 1.5.3.\r\n\r\n\r\n**Matplotlib version**\r\n\r\nInstalled from MacPorts on OS X 10.11.6 \"El Capitan\". Port versions:\r\n- `py27-matplotlib @1.5.3_0+cairo`\r\n- `py27-matplotlib @2.0.0_0+cairo`","author":{"url":"https://github.com/lpsinger","@type":"Person","name":"lpsinger"},"datePublished":"2017-01-21T07:06:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/7903/matplotlib/issues/7903"}
| 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:6de6f3e3-9029-a12f-5e11-6ebc0f34756f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D094:37BBD6:3737EE:4BCC08:6A529057 |
| html-safe-nonce | eb81bc0c30423dee99c6fdf8ad7eb7c3592d8a6e50d699407a51bab58151bbcd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDk0OjM3QkJENjozNzM3RUU6NEJDQzA4OjZBNTI5MDU3IiwidmlzaXRvcl9pZCI6IjU4MzEwNjAyMzgwNzQyODYxNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 28cea8913d043a82ecbf996c500d0660f27b874bfbaa264b86f1fa3bf0d27e5a |
| hovercard-subject-tag | issue:202298707 |
| 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/7903/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc2791c474381754ce66b4133bff6fce50ffa5783f86a1eff6a1adae59bfd642/matplotlib/matplotlib/issues/7903 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc2791c474381754ce66b4133bff6fce50ffa5783f86a1eff6a1adae59bfd642/matplotlib/matplotlib/issues/7903 |
| og:image:alt | Bug summary In Matplotlib 1.5.3, it was possible to use imshow on geo axes (e.g. the mollweide projection defined in matplotlib.projections.geo. In Matplotlib 2.0.0, this produces a blank plot. Cod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lpsinger |
| 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