Title: Colorbars/legends spanning arbitrary contiguous subplots · Issue #329 · proplot-dev/proplot · GitHub
Open Graph Title: Colorbars/legends spanning arbitrary contiguous subplots · Issue #329 · proplot-dev/proplot
X Title: Colorbars/legends spanning arbitrary contiguous subplots · Issue #329 · proplot-dev/proplot
Description: In an upcoming version I'd like to support "outer" colorbars and legends spanning arbitrary contiguous subplots -- not just "figure-wide" colorbars along the figure edge. Here's a matplotlib example from this page (the top-left colorbar ...
Open Graph Description: In an upcoming version I'd like to support "outer" colorbars and legends spanning arbitrary contiguous subplots -- not just "figure-wide" colorbars along the figure edge. Here's a matplotlib exampl...
X Description: In an upcoming version I'd like to support "outer" colorbars and legends spanning arbitrary contiguous subplots -- not just "figure-wide" colorbars along the figure edge. He...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/329
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Colorbars/legends spanning arbitrary contiguous subplots","articleBody":"In an upcoming version I'd like to support \"outer\" colorbars and legends spanning arbitrary contiguous subplots -- not just [\"figure-wide\" colorbars](https://proplot.readthedocs.io/en/latest/colorbars_legends.html#Figure-wide-colorbars-and-legends) along the figure edge. Here's a matplotlib example from [this page](https://matplotlib.org/stable/gallery/subplots_axes_and_figures/colorbar_placement.html) (the top-left colorbar is what I'm thinking of... except as before, proplot would preserve colorbar widths and subplot aspect ratios):\r\n\r\n\r\n\r\nThis shouldn't be too hard to implement, and will have the benefit of unifying the clunky internal implementation of \"axes-type\" and \"figure-type\" colorbars and legends.\r\n\r\nThis is also an area where [`SubplotGrid`](https://proplot.readthedocs.io/en/latest/api/proplot.gridspec.SubplotGrid.html) could really start to shine -- similar to `SubplotGrid.format`, which calls `figure.format(axs=axs)` using the axes in the grid, I can implement `SubplotGrid.colorbar` and `SubplotGrid.legend` that respectively call `figure.colorbar(axs=axs)` and `figure.legend(axs=axs)`. This would be really succinct and intuitive -- for example, if someone has a 2-row, 3-column figure, then to draw a bottom colorbar spanning the top and bottom rows, the syntax would be `axs[0, :].colorbar(m, loc='bottom')` followed by `axs[1, :].colorbar(loc='bottom')`.","author":{"url":"https://github.com/lukelbd","@type":"Person","name":"lukelbd"},"datePublished":"2022-01-27T08:28:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/329/proplot/issues/329"}
| 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:9a72018c-d028-8ebf-a8c7-2d157c0e6221 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1BA:1311A:1F59AF0:2B7F489:697CA55D |
| html-safe-nonce | fe8ffa563f481afeb47f352d83dfceb211c78eb91add7075fccad5bc4ea7b75e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUJBOjEzMTFBOjFGNTlBRjA6MkI3RjQ4OTo2OTdDQTU1RCIsInZpc2l0b3JfaWQiOiI3NjM1MDU5NzQzNDg3OTkzMTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1cd6355491883d1576805f3f1d4399fb52614ae10edf8e4ea7eaaa459bf3f829 |
| hovercard-subject-tag | issue:1115916351 |
| 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/329/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f3297ebabd958fef7617e12713b5894845778a2640348402fa2ca7394f0dd3f/proplot-dev/proplot/issues/329 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f3297ebabd958fef7617e12713b5894845778a2640348402fa2ca7394f0dd3f/proplot-dev/proplot/issues/329 |
| og:image:alt | In an upcoming version I'd like to support "outer" colorbars and legends spanning arbitrary contiguous subplots -- not just "figure-wide" colorbars along the figure edge. Here's a matplotlib exampl... |
| 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 | 5bdfd06d077d4bc79a8063f7549f208cda3158f1322903029653dc97f57b937a |
| 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 | f8a309d88087f59ff1a2f2cd9e9e79ed01a7b84e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width