Title: Compact string notation for subplot_mosaic · Issue #18731 · matplotlib/matplotlib · GitHub
Open Graph Title: Compact string notation for subplot_mosaic · Issue #18731 · matplotlib/matplotlib
X Title: Compact string notation for subplot_mosaic · Issue #18731 · matplotlib/matplotlib
Description: Instead of plt.subplot_mosaic( """ AB CC """) should we also allow a short string version plt.subplot_mosaic("AB|CC") ? Implementing is probably as simple as: if '|' in layout and not '\n' in layout: layout = layout.replace('|', '\n') to...
Open Graph Description: Instead of plt.subplot_mosaic( """ AB CC """) should we also allow a short string version plt.subplot_mosaic("AB|CC") ? Implementing is probably as simple as: if '|' in layout and not '\n' in layou...
X Description: Instead of plt.subplot_mosaic( """ AB CC """) should we also allow a short string version plt.subplot_mosaic("AB|CC") ? Implementing is probably as simple as...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18731
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compact string notation for subplot_mosaic","articleBody":"Instead of \r\n~~~\r\nplt.subplot_mosaic(\r\n \"\"\"\r\n AB\r\n CC\r\n \"\"\")\r\n~~~\r\n\r\nshould we also allow a short string version\r\n~~~\r\nplt.subplot_mosaic(\"AB|CC\")\r\n~~~\r\n?\r\n\r\nImplementing is probably as simple as:\r\n~~~\r\nif '|' in layout and not '\\n' in layout:\r\n layout = layout.replace('|', '\\n')\r\n~~~\r\nto get back to the long version.\r\n\r\nI got the idea while trying to find a compact replacement for the plot in https://matplotlib.org/devdocs/gallery/subplots_axes_and_figures/axes_margins.html.","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2020-10-14T22:32:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/18731/matplotlib/issues/18731"}
| 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:c605e804-cf48-645d-cfb3-428dedda41a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D8E:15F1A6:86E327:B21FB1:6A530EDB |
| html-safe-nonce | e6c68764e6700f1dfcdd752d11511a7b28d55bf8e4ddf4a7b27dc965d22b5e9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDhFOjE1RjFBNjo4NkUzMjc6QjIxRkIxOjZBNTMwRURCIiwidmlzaXRvcl9pZCI6IjIwMzk0NDY5MDg1NDg4NzgwNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cdbc1d58320fd13a2df73fb916cc84cfad86250c9f0bf16bfa184131af94895f |
| hovercard-subject-tag | issue:721836708 |
| 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/18731/issue_layout |
| twitter:image | https://opengraph.githubassets.com/253a7955dacfc61c3e7a07d4ce5aab4e5e47ae6b5d3cbdf0a0fa5e98aa22ea9f/matplotlib/matplotlib/issues/18731 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/253a7955dacfc61c3e7a07d4ce5aab4e5e47ae6b5d3cbdf0a0fa5e98aa22ea9f/matplotlib/matplotlib/issues/18731 |
| og:image:alt | Instead of plt.subplot_mosaic( """ AB CC """) should we also allow a short string version plt.subplot_mosaic("AB|CC") ? Implementing is probably as simple as: if '|' in layout and not '\n' in layou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| 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