Title: Another bug plotting geographic data with 2D longitude/latitude · Issue #54 · proplot-dev/proplot · GitHub
Open Graph Title: Another bug plotting geographic data with 2D longitude/latitude · Issue #54 · proplot-dev/proplot
X Title: Another bug plotting geographic data with 2D longitude/latitude · Issue #54 · proplot-dev/proplot
Description: This file with 2D longitude/latitude arrays causes a weird streaking issue when you do a pcolormesh plot. import os import xarray as xr file = os.path.expanduser('~/Downloads/data.for.luke.nc') data = xr.open_dataset(file) # proplot leve...
Open Graph Description: This file with 2D longitude/latitude arrays causes a weird streaking issue when you do a pcolormesh plot. import os import xarray as xr file = os.path.expanduser('~/Downloads/data.for.luke.nc') dat...
X Description: This file with 2D longitude/latitude arrays causes a weird streaking issue when you do a pcolormesh plot. import os import xarray as xr file = os.path.expanduser('~/Downloads/data.for.luke.nc...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/54
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Another bug plotting geographic data with 2D longitude/latitude","articleBody":"[This file](https://file.io/Y74fRD) with 2D longitude/latitude arrays causes a weird streaking issue when you do a `pcolormesh` plot.\r\n\r\n```python\r\nimport os\r\nimport xarray as xr\r\nfile = os.path.expanduser('~/Downloads/data.for.luke.nc')\r\ndata = xr.open_dataset(file)\r\n\r\n# proplot\r\nlevels = plot.arange(0, 0.012, 0.001)\r\nimport proplot as plot\r\nf, ax = plot.subplots(proj='cyl', width=5)\r\nax.pcolormesh(data.ULONG, co2.ULAT, data.PH_ALT_CO2, levels=levels, cmap='Fire', colorbar='b')\r\nax.format(facecolor='gray')\r\n\r\n# pyplot\r\nimport matplotlib.pyplot as plt\r\nimport cartopy.crs as ccrs\r\nf, ax = plt.subplots(figsize=(5,3.5), subplot_kw={'projection':ccrs.PlateCarree()})\r\nc = ax.pcolormesh(data.ULONG, co2.ULAT, data.PH_ALT_CO2, # levels=levels,\r\n vmin=min(levels), vmax=max(levels),\r\n cmap='Fire', transform=ccrs.PlateCarree())\r\nf.colorbar(c, ax=ax, orientation='horizontal')\r\nax.patch.set_facecolor('gray')\r\nf.subplots_adjust(0.02, 0.02, 0.98, 0.98)\r\n```\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/lukelbd","@type":"Person","name":"lukelbd"},"datePublished":"2019-10-21T20:31:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/54/proplot/issues/54"}
| 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:32137ea6-178a-bac7-5650-f2b87aefcd40 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE32:2130F3:C61F1E:105C523:697BFF61 |
| html-safe-nonce | fae1a40cd37f792e1fcd320f80538021441bb84927a0c3aae89b78d0b34d148d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTMyOjIxMzBGMzpDNjFGMUU6MTA1QzUyMzo2OTdCRkY2MSIsInZpc2l0b3JfaWQiOiIxMjU4MTQwNjY3NDYwOTc2NDgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a79678e3c9f36d16a778d0a7d8142c592bafacb7ac543d1101cb3320c06428a1 |
| hovercard-subject-tag | issue:510272807 |
| 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/proplot-dev/proplot/54/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3856e82d8ebe2e332c7ceb2276dc0d0ac1390694b3f82e0e377a3478785e3a7b/proplot-dev/proplot/issues/54 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3856e82d8ebe2e332c7ceb2276dc0d0ac1390694b3f82e0e377a3478785e3a7b/proplot-dev/proplot/issues/54 |
| og:image:alt | This file with 2D longitude/latitude arrays causes a weird streaking issue when you do a pcolormesh plot. import os import xarray as xr file = os.path.expanduser('~/Downloads/data.for.luke.nc') dat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lukelbd |
| hostname | github.com |
| expected-hostname | github.com |
| None | da4f0ee56809799586f8ee546b27f94fe9b5893edfbf87732e82be45be013b52 |
| turbo-cache-control | no-preview |
| go-import | github.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git |
| octolytics-dimension-user_id | 108025793 |
| octolytics-dimension-user_login | proplot-dev |
| octolytics-dimension-repository_id | 113293661 |
| octolytics-dimension-repository_nwo | proplot-dev/proplot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113293661 |
| octolytics-dimension-repository_network_root_nwo | proplot-dev/proplot |
| 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 | 2d0972e08a3f8dfff1c4bf1f3d026a7d3a209c26 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width