Title: Shared lon/lat labels for rectangular map projections · Issue #79 · proplot-dev/proplot · GitHub
Open Graph Title: Shared lon/lat labels for rectangular map projections · Issue #79 · proplot-dev/proplot
X Title: Shared lon/lat labels for rectangular map projections · Issue #79 · proplot-dev/proplot
Description: I was trying to use shared labels, but I didn't succeed to make it work for longitude and latitude. At least if we write it as for other regular 2D data with x, y, as in the documentation example: https://proplot.readthedocs.io/en/latest...
Open Graph Description: I was trying to use shared labels, but I didn't succeed to make it work for longitude and latitude. At least if we write it as for other regular 2D data with x, y, as in the documentation example: ...
X Description: I was trying to use shared labels, but I didn't succeed to make it work for longitude and latitude. At least if we write it as for other regular 2D data with x, y, as in the documentation examp...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/79
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Shared lon/lat labels for rectangular map projections","articleBody":"I was trying to use **shared labels**, but I didn't succeed to make it work for **longitude** and **latitude**. At least if we write it as for other regular 2D data with x, y, as in the documentation example: https://proplot.readthedocs.io/en/latest/customizing.html#Shared-and-spanning-labels. \r\n\r\nHere is an example (data: [season_clim_diff.zip](https://github.com/lukelbd/proplot/files/3921148/season_clim_diff.zip)):\r\n```python\r\nimport xarray as xr\r\nimport proplot as plot\r\n\r\nseason_clim_diff = xr.open_dataarray('season_clim_diff.nc')\r\n\r\nf, axs = plot.subplots(\r\n proj='cyl', proj_kw={'lon_0':180}, ncols=2, nrows=2, axwidth=3, share=3\r\n)\r\n\r\nseasons = ['DJF', 'MAM', 'JJA', 'SON']\r\n\r\nfor i, ax in enumerate(axs):\r\n m = ax.contourf(\r\n season_clim_diff.sel(season=seasons[i]), cmap='ColdHot', norm='midpoint'\r\n )\r\n ax.format(title=season_clim_diff.sel(season=seasons[i]).season.values)\r\n \r\nf.colorbar(m, label=\"Snow Area Fraction [%]\")\r\naxs.format(\r\n geogridlinewidth=0.5, geogridcolor='gray8', geogridalpha=0.5, \r\n labels=True, lonlines=60, latlines=30, \r\n coast=True, ocean=True, oceancolor='gray4',\r\n suptitle=\"Annual snow cover bias (IPSL versus Rutgers)\", \r\n abc=True, abcstyle='a.'\r\n)\r\n```\r\n\r\n\r\n\r\nThus, with the `share=3` option I would expect that the longitudes labels of the first line and the latitudes labels of the last column won't appear.\r\n\r\n","author":{"url":"https://github.com/mickaellalande","@type":"Person","name":"mickaellalande"},"datePublished":"2019-12-04T09:56:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/79/proplot/issues/79"}
| 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:8bcc9e99-d734-dd3e-1b2d-7fe0d01270b0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A596:25CC43:17247D:1EE509:697BCA19 |
| html-safe-nonce | 0dfc2fc1647632edd2df4f7fb87614e8eb4f51ba044358bb0f8a01f5dd491e1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTk2OjI1Q0M0MzoxNzI0N0Q6MUVFNTA5OjY5N0JDQTE5IiwidmlzaXRvcl9pZCI6Ijg0MjA5NTAwNDE4MTE0NzA4NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a30bb20bd4310ec08c00d83cfc545c21915c9fabe23e3b355f2857e36e8a7e73 |
| hovercard-subject-tag | issue:532571178 |
| 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/79/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38402dcb7252dce22bb774f04b38967d9f66ec44556fc8580f7c1b81bf21a043/proplot-dev/proplot/issues/79 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38402dcb7252dce22bb774f04b38967d9f66ec44556fc8580f7c1b81bf21a043/proplot-dev/proplot/issues/79 |
| og:image:alt | I was trying to use shared labels, but I didn't succeed to make it work for longitude and latitude. At least if we write it as for other regular 2D data with x, y, as in the documentation example: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mickaellalande |
| hostname | github.com |
| expected-hostname | github.com |
| None | 300bc1c13c6b7e78c073c9264c722c624187bbdfc3b25a5b021396c805f56978 |
| 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 | f571aa04a5e12a930e3b781f4b1c4b4408e5ba61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width