Title: [Feature request] span axis labels · Issue #464 · proplot-dev/proplot · GitHub
Open Graph Title: [Feature request] span axis labels · Issue #464 · proplot-dev/proplot
X Title: [Feature request] span axis labels · Issue #464 · proplot-dev/proplot
Description: Description I often have the issue where the axes are not shared, but I do want to share the labels. For example when I am mixing some axes and not others. I propose to add a feature where you can specify the sharing of the axis. As far ...
Open Graph Description: Description I often have the issue where the axes are not shared, but I do want to share the labels. For example when I am mixing some axes and not others. I propose to add a feature where you can ...
X Description: Description I often have the issue where the axes are not shared, but I do want to share the labels. For example when I am mixing some axes and not others. I propose to add a feature where you can ...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/464
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature request] span axis labels","articleBody":"\u003c!-- Thanks for helping us make proplot a better package! If this is a bug report, please use the template provided below. If this is a feature request, you can delete the template text (just try to be descriptive with your request). --\u003e\r\n\r\n### Description\r\n\r\nI often have the issue where the axes are not shared, but I do want to share the labels. For example when I am mixing some axes and not others. I propose to add a feature where you can specify the sharing of the axis. As far as I am aware this is not available in proplot. Currently I resort to something like\r\n\r\n```python\r\n\r\ndef add_main(fig, nrows, ncols, span):\r\n main = fig.add_subplot(nrows, ncols, span)\r\n main.set_facecolor(\"none\")\r\n main.set_xticks([])\r\n main.set_yticks([])\r\n for spine in main.axes.spines.values():\r\n spine.set_visible(False)\r\n return main\r\n\r\nfig, ax = plt.subplots(ncols = 2, nrows = 2, share = 0)\r\nmain_top = add_main(fig, 2, 2, (1, 2))\r\nmain_top.set_xlabel(\"group 1\", labelpad = 25)\r\nmain_top.set_ylabel(\"group 1\", labelpad = 25)\r\n\r\n\r\nmain_bottom = add_main(fig, 2, 2, (3, 4))\r\nmain_bottom.set_xlabel(\"group 2\", labelpad = 25)\r\nmain_bottom.set_ylabel(\"group 2\", labelpad = 25)\r\n\r\nfig.show()\r\n\r\n```\r\n\r\nResulting in \r\n\r\n\r\n\r\nSome of it can be achieved with `fig` labels. If this can already be achieved, we could add it to the docs, if not we can add it.","author":{"url":"https://github.com/cvanelteren","@type":"Person","name":"cvanelteren"},"datePublished":"2024-08-26T08:42:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/464/proplot/issues/464"}
| 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:4fbdee95-533e-9b8d-72f2-68ee6e3c5269 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE8A:3D95EB:4399DA:592092:696B4021 |
| html-safe-nonce | 1921ea7616c62e8cf40213849d29593fd226ecaf2fbd85b9c76728692a781dfe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERThBOjNEOTVFQjo0Mzk5REE6NTkyMDkyOjY5NkI0MDIxIiwidmlzaXRvcl9pZCI6IjI3NzA4OTQ3NzI2NDM3NzQ0OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3f5ef72021bba940245b3e4294de02ade24b812c08ce589461fea5dfca571d72 |
| hovercard-subject-tag | issue:2486296038 |
| 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/464/issue_layout |
| twitter:image | https://opengraph.githubassets.com/39fa283e255c3cd48ab65444518d0bdcea1f9df345e7da55075143103cf5bff3/proplot-dev/proplot/issues/464 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/39fa283e255c3cd48ab65444518d0bdcea1f9df345e7da55075143103cf5bff3/proplot-dev/proplot/issues/464 |
| og:image:alt | Description I often have the issue where the axes are not shared, but I do want to share the labels. For example when I am mixing some axes and not others. I propose to add a feature where you can ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cvanelteren |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width