Title: `Axes3d` attaches itself to a figure, where as `Axes` does not · Issue #18364 · matplotlib/matplotlib · GitHub
Open Graph Title: `Axes3d` attaches itself to a figure, where as `Axes` does not · Issue #18364 · matplotlib/matplotlib
X Title: `Axes3d` attaches itself to a figure, where as `Axes` does not · Issue #18364 · matplotlib/matplotlib
Description: import matplotlib.pyplot as plt import matplotlib.axes as maxes fig = plt.figure() ax = maxes.Axes(fig, [0.1, 0.1, 0.9, 0.9]) print(fig.get_children()) returns a list with no axes.... [ Open Graph Description: import matplotlib.pyplot as plt import matplotlib.axes as maxes fig = plt.figure() ax = maxes.Axes(fig, [0.1, 0.1, 0.9, 0.9]) print(fig.get_children()) returns a list with no axes.... [ X Description: import matplotlib.pyplot as plt import matplotlib.axes as maxes fig = plt.figure() ax = maxes.Axes(fig, [0.1, 0.1, 0.9, 0.9]) print(fig.get_children()) returns a list with no axes.... [<matplotl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18364
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Axes3d` attaches itself to a figure, where as `Axes` does not","articleBody":"```python\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib.axes as maxes\r\n\r\nfig = plt.figure()\r\nax = maxes.Axes(fig, [0.1, 0.1, 0.9, 0.9])\r\nprint(fig.get_children())\r\n```\r\n\r\nreturns a list with no axes....\r\n\r\n```\r\n[\u003cmatplotlib.patches.Rectangle object at 0x7f8d75707dc0\u003e]\r\n```\r\n\r\nFor 3-d\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib.axes as maxes\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\n\r\nfig = plt.figure()\r\nax = Axes3D(fig)\r\nprint(fig.get_children())\r\n```\r\n\r\nhas the axes attached:\r\n\r\n```\r\n[\u003cmatplotlib.patches.Rectangle object at 0x7fbc2968d160\u003e, \u003cmpl_toolkits.mplot3d.axes3d.Axes3D object at 0x7fbc2968df40\u003e]\r\n```\r\n\r\n`Axes3D.__init__` explicitly adds itself to its parent:\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/c035f66d657b9211bc7f986c24c430e9e7314a6c/lib/mpl_toolkits/mplot3d/axes3d.py#L139\r\n\r\nwhereas no such thing happens for the base `Axes` class.\r\n\r\nDiscovered as part of #18356, but discussing here because its orthogonal. But I think the behaviour here should be the same . ","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2020-08-27T15:52:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/18364/matplotlib/issues/18364"}
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:73a2f7a2-55df-c641-f90f-47b64c38c44f current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id EA7A:1661F0:3BF502:506778:6A525F23 html-safe-nonce dc6984659b0966ec294b39eb9a049746fff79215761167f9ce126259e8552fb1 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTdBOjE2NjFGMDozQkY1MDI6NTA2Nzc4OjZBNTI1RjIzIiwidmlzaXRvcl9pZCI6IjQ5OTY2OTAzMDc0MTg1Nzg3MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 7bd67f0ccdeda8c75d1b6ecdde1ee4302203fcccf926db48d276a11e3709be51 hovercard-subject-tag issue:687354542 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/18364/issue_layout twitter:image https://opengraph.githubassets.com/a2cea15850f19e3baa25de440fb6cc91bc4c3cb535abe171830957969010b041/matplotlib/matplotlib/issues/18364 twitter:card summary_large_image og:image https://opengraph.githubassets.com/a2cea15850f19e3baa25de440fb6cc91bc4c3cb535abe171830957969010b041/matplotlib/matplotlib/issues/18364 og:image:alt import matplotlib.pyplot as plt import matplotlib.axes as maxes fig = plt.figure() ax = maxes.Axes(fig, [0.1, 0.1, 0.9, 0.9]) print(fig.get_children()) returns a list with no axes.... [ og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username jklymak 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 7aed05249554b889eb33d002851a973eebcc7e91 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.