Title: Overview of Axes creation methods · Issue #17376 · matplotlib/matplotlib · GitHub
Open Graph Title: Overview of Axes creation methods · Issue #17376 · matplotlib/matplotlib
X Title: Overview of Axes creation methods · Issue #17376 · matplotlib/matplotlib
Description: We should have an overview (possibly in the tutorials) which methods create Axes and when to use which. This could contain the flow-chart blow plus additional descriptions. I've not taken into account subgridspec and axes_grid1. Am I mis...
Open Graph Description: We should have an overview (possibly in the tutorials) which methods create Axes and when to use which. This could contain the flow-chart blow plus additional descriptions. I've not taken into acco...
X Description: We should have an overview (possibly in the tutorials) which methods create Axes and when to use which. This could contain the flow-chart blow plus additional descriptions. I've not taken into ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17376
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overview of Axes creation methods","articleBody":"We should have an overview (possibly in the tutorials) which methods create Axes and when to use which.\r\n\r\nThis could contain the flow-chart blow plus additional descriptions.\r\n\r\n- I've not taken into account `subgridspec` and `axes_grid1`.\r\n- Am I missing some methods?\r\n- the diagram could be embedded using `.. graphviz`. However, while it renders with http://graphviz.it/ it currently does not with sphinx (issueing some errors).\r\n- The styling could still be improved (add links, font/color, use a HTML node instead of a record, ...)\r\n\r\n\r\n\r\n~~~\r\ndigraph {\r\n node[shape=diamond]\r\n q_fullsize; q_simple_grid; q_complex_grid; q_inset; q_twin;\r\n node[shape=record]\r\n full_size;\r\n \r\n q_fullsize [label=\"full size?\"]\r\n full_size [label=\"{plt.subplot()|plt.subplots()} | {Figure.add_subplot()|Figure.subplots()}\"]\r\n q_simple_grid [label=\"simple grid?\"]\r\n simple_grid [label=\"{plt.subplot(n, m, k) | plt.subplots(n, m)}| {Figure.add_subplot(n, m, k) | Figure.subplots(n, m)}\"]\r\n q_complex_grid [label=\"complex grid?\"]\r\n complex_grid [label=\"{plt.subplot2grid() | plt.subplot(subplotspec) | plt.subplots(gridspec_kw) | } | { | Figure.subplot(subplotspec) | Figure.subplots(gridspec_kw) | GridSpec.subplots()}\"]\r\n q_inset [label=\"inset?\"]\r\n inset [label=\"Axes.inset_axes()\"]\r\n q_twin [label=\"twin?\"]\r\n twin [label=\"{plt.twinx() | plt.twiny()} | {Axes.twinx() | Axes.twiny()}\"]\r\n axes [label=\"{plt.axes() | Figure.add_axes()}\"]\r\n\r\n q_fullsize -\u003e q_simple_grid [ label = \"No\" ];\r\n q_simple_grid -\u003e q_complex_grid [label = \"No\" ];\r\n q_fullsize -\u003e full_size [ label = \"Yes\" ];\r\n q_simple_grid -\u003e simple_grid[ label = \"Yes\" ];\r\n q_complex_grid -\u003e complex_grid [label = \"Yes\"];\r\n q_complex_grid -\u003e q_inset [label = \"No\"];\r\n q_inset -\u003e inset[label=\"Yes\"];\r\n q_inset -\u003e q_twin [label=\"No\"]\r\n q_twin -\u003e twin[label=\"Yes\"]\r\n q_twin -\u003e axes[label=\"No\"]\r\n\r\n {\r\n rank=same;\r\n q_fullsize full_size\r\n }\r\n {\r\n rank=same;\r\n q_simple_grid simple_grid\r\n }\r\n {\r\n rank=same;\r\n q_complex_grid complex_grid\r\n }\r\n {\r\n rank=same;\r\n q_inset inset\r\n }\r\n {\r\n rank=same;\r\n q_twin twin\r\n }\r\n}\r\n~~~","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2020-05-10T00:19:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/17376/matplotlib/issues/17376"}
| 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:5ce2276e-ecab-2ff5-7b08-724f7ad30525 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F8C:15C844:CD2414:1146591:6A51690F |
| html-safe-nonce | 2958245081da4c124176b9496e5b3f752644b3475e7f3b8c42dc9067669da120 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjhDOjE1Qzg0NDpDRDI0MTQ6MTE0NjU5MTo2QTUxNjkwRiIsInZpc2l0b3JfaWQiOiI0OTcxODMzOTMxNTE3MjI1MjMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e86a6b6d69c4fda98d9a5666f2fb2f8baf5db5ca140117faefae46693bab6a50 |
| hovercard-subject-tag | issue:615286027 |
| 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/17376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/017826fba55be37197140212996852d3c7af071769d5bd008bd719ebca80d3c2/matplotlib/matplotlib/issues/17376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/017826fba55be37197140212996852d3c7af071769d5bd008bd719ebca80d3c2/matplotlib/matplotlib/issues/17376 |
| og:image:alt | We should have an overview (possibly in the tutorials) which methods create Axes and when to use which. This could contain the flow-chart blow plus additional descriptions. I've not taken into acco... |
| 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 | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width