René's URL Explorer Experiment


Title: proplot throws errors after upgrade · Issue #349 · proplot-dev/proplot · GitHub

Open Graph Title: proplot throws errors after upgrade · Issue #349 · proplot-dev/proplot

X Title: proplot throws errors after upgrade · Issue #349 · proplot-dev/proplot

Description: Description After upgrading proplot, I get errors when trying to do some simple things. The main issue is encountered upon making panels. The panel displays in output but with an error. Would really appreciate advice on how to fix this! ...

Open Graph Description: Description After upgrading proplot, I get errors when trying to do some simple things. The main issue is encountered upon making panels. The panel displays in output but with an error. Would reall...

X Description: Description After upgrading proplot, I get errors when trying to do some simple things. The main issue is encountered upon making panels. The panel displays in output but with an error. Would reall...

Opengraph URL: https://github.com/proplot-dev/proplot/issues/349

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"proplot throws errors after upgrade","articleBody":"### Description\r\n\r\nAfter upgrading proplot, I get errors when trying to do some simple things. The main issue is encountered upon making panels. The panel displays in output but with an error. Would really appreciate advice on how to fix this! I have looked at some previous posts here and have already tried updating matplotlib and proplot together, with no change in behavior.\r\n\r\n### Steps to reproduce\r\n\r\nimport proplot as plot\r\n\r\nimport numpy as np\r\n\r\nfig, axs = plot.subplots(axwidth=5, ncols=1, nrows=1)\r\na = axs.plot(np.linspace(0,100,100), np.linspace(0,100,100), '--', c='sapphire', label='Ni')\r\naxs.panel(side='b')\r\n\r\n**Expected behavior**\r\n\r\nA plot featuring a line, with an empty panel beneath it.\r\n\r\n**Actual behavior**: \r\n\r\nThrows following error:\r\n\r\n```\r\nAttributeError                            Traceback (most recent call last)\r\n\u003cipython-input-14-c30176304eae\u003e in \u003cmodule\u003e\r\n      3 fig, axs = plot.subplots(axwidth=5, ncols=1, nrows=1, share=0)\r\n      4 \r\n----\u003e 5 axs.panel(side='b', space=0.15)\r\n\r\n~/opt/anaconda3/lib/python3.7/site-packages/proplot/gridspec.py in _grid_command(self, *args, **kwargs)\r\n   1456         objs = []\r\n   1457         for ax in self:\r\n-\u003e 1458             obj = getattr(ax, name)(*args, **kwargs)\r\n   1459             objs.append(obj)\r\n   1460         return SubplotGrid(objs)\r\n\r\n~/opt/anaconda3/lib/python3.7/site-packages/proplot/axes/base.py in panel(self, *args, **kwargs)\r\n   1657         %(axes.panel)s\r\n   1658         \"\"\"\r\n-\u003e 1659         return self.panel_axes(*args, **kwargs)\r\n   1660 \r\n   1661     @docstring._snippet_manager\r\n\r\n~/opt/anaconda3/lib/python3.7/site-packages/proplot/axes/base.py in panel_axes(self, *args, **kwargs)\r\n   1670         if self._panel_parent:\r\n   1671             raise RuntimeError('Cannot create panels for existing panel axes.')\r\n-\u003e 1672         return self.figure._add_axes_panel(self, *args, **kwargs)\r\n   1673 \r\n   1674     def _add_frame(\r\n\r\n~/opt/anaconda3/lib/python3.7/site-packages/proplot/figure.py in _add_axes_panel(self, ax, side, **kwargs)\r\n    910         pax._panel_parent = ax\r\n    911         ax._panel_dict[side].append(pax)\r\n--\u003e 912         ax._auto_share()\r\n    913         axis = pax.yaxis if side in ('left', 'right') else pax.xaxis\r\n    914         getattr(axis, 'tick_' + side)()  # set tick and tick label position\r\n\r\n~/opt/anaconda3/lib/python3.7/site-packages/proplot/axes/base.py in _auto_share(self)\r\n   1747                 for iax in (self, *paxs[:-1]):\r\n   1748                     iax._panel_sharex_group = True\r\n-\u003e 1749                     iax._sharex_setup(bottom)  # parent is bottom-most\r\n   1750             paxs = shared(self._panel_dict['top'])\r\n   1751             for iax in paxs:\r\n\r\n~/opt/anaconda3/lib/python3.7/site-packages/proplot/axes/cartesian.py in _sharex_setup(self, sharex, labels, limits)\r\n    583         # labels. But this is done after the fact -- tickers are still shared.\r\n    584         if level \u003e 1 and limits:\r\n--\u003e 585             self._sharex_limits(sharex)\r\n    586 \r\n    587     def _sharey_setup(self, sharey, *, labels=True, limits=True):\r\n\r\n~/opt/anaconda3/lib/python3.7/site-packages/proplot/axes/cartesian.py in _sharex_limits(self, sharex)\r\n    524                 ax1.set_xlim(ax2.get_xlim())  # non-default limits\r\n    525         # Copy non-default locators and formatters\r\n--\u003e 526         self._shared_x_axes.join(self, sharex)  # share limit/scale changes\r\n    527         if sharex.xaxis.isDefault_majloc and not self.xaxis.isDefault_majloc:\r\n    528             sharex.xaxis.set_major_locator(self.xaxis.get_major_locator())\r\n```\r\n\r\nAttributeError: 'CartesianAxesSubplot' object has no attribute '_shared_x_axes'\r\n\r\n### Proplot version\r\n\r\n3.5.1\r\n0.9.5\r\n","author":{"url":"https://github.com/dawnstrata","@type":"Person","name":"dawnstrata"},"datePublished":"2022-03-14T19:20:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/349/proplot/issues/349"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:728f8726-bfbf-bc79-e9bd-04b325b708b3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEDEE:2DE4CC:35A2A42:478B7BC:697AF415
html-safe-nonce306dc9b36b62d7cb59cc2666b2a45b5bdc6c5aea1eb14c59bc11fc43e6ebb0e2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREVFOjJERTRDQzozNUEyQTQyOjQ3OEI3QkM6Njk3QUY0MTUiLCJ2aXNpdG9yX2lkIjoiNTU4MjAzMzI0MTA1NDU3MzU4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac13fdfced8be0d90eb90e19bbae445cba068698d962e0226b5ceab71994be6e98
hovercard-subject-tagissue:1168804683
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/proplot-dev/proplot/349/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cc52ee779a8acbc1852af2495077b30605a45cc1c98d862a3fccb852b915dd90/proplot-dev/proplot/issues/349
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc52ee779a8acbc1852af2495077b30605a45cc1c98d862a3fccb852b915dd90/proplot-dev/proplot/issues/349
og:image:altDescription After upgrading proplot, I get errors when trying to do some simple things. The main issue is encountered upon making panels. The panel displays in output but with an error. Would reall...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedawnstrata
hostnamegithub.com
expected-hostnamegithub.com
None7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8
turbo-cache-controlno-preview
go-importgithub.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git
octolytics-dimension-user_id108025793
octolytics-dimension-user_loginproplot-dev
octolytics-dimension-repository_id113293661
octolytics-dimension-repository_nwoproplot-dev/proplot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113293661
octolytics-dimension-repository_network_root_nwoproplot-dev/proplot
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released7bfc78137af9a4828305e52ab993fce981d7085
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/proplot-dev/proplot/issues/349#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fproplot-dev%2Fproplot%2Fissues%2F349
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fproplot-dev%2Fproplot%2Fissues%2F349
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=proplot-dev%2Fproplot
Reloadhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/issues/349
Reloadhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/issues/349
Reloadhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/issues/349
proplot-dev https://patch-diff.githubusercontent.com/proplot-dev
proplothttps://patch-diff.githubusercontent.com/proplot-dev/proplot
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fproplot-dev%2Fproplot
Fork 97 https://patch-diff.githubusercontent.com/login?return_to=%2Fproplot-dev%2Fproplot
Star 1.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fproplot-dev%2Fproplot
Code https://patch-diff.githubusercontent.com/proplot-dev/proplot
Issues 88 https://patch-diff.githubusercontent.com/proplot-dev/proplot/issues
Pull requests 7 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulls
Discussions https://patch-diff.githubusercontent.com/proplot-dev/proplot/discussions
Actions https://patch-diff.githubusercontent.com/proplot-dev/proplot/actions
Projects 0 https://patch-diff.githubusercontent.com/proplot-dev/proplot/projects
Security 0 https://patch-diff.githubusercontent.com/proplot-dev/proplot/security
Insights https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulse
Code https://patch-diff.githubusercontent.com/proplot-dev/proplot
Issues https://patch-diff.githubusercontent.com/proplot-dev/proplot/issues
Pull requests https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulls
Discussions https://patch-diff.githubusercontent.com/proplot-dev/proplot/discussions
Actions https://patch-diff.githubusercontent.com/proplot-dev/proplot/actions
Projects https://patch-diff.githubusercontent.com/proplot-dev/proplot/projects
Security https://patch-diff.githubusercontent.com/proplot-dev/proplot/security
Insights https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/proplot-dev/proplot/issues/349
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/proplot-dev/proplot/issues/349
proplot throws errors after upgradehttps://patch-diff.githubusercontent.com/proplot-dev/proplot/issues/349#top
bughttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22bug%22
duplicatehttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22duplicate%22
https://github.com/dawnstrata
https://github.com/dawnstrata
dawnstratahttps://github.com/dawnstrata
on Mar 14, 2022https://github.com/proplot-dev/proplot/issues/349#issue-1168804683
bughttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22bug%22
duplicatehttps://github.com/proplot-dev/proplot/issues?q=state%3Aopen%20label%3A%22duplicate%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.