René's URL Explorer Experiment


Title: [Bug]: boxplot errors when `x` and `tick_labels` are empty · Issue #32304 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: boxplot errors when `x` and `tick_labels` are empty · Issue #32304 · matplotlib/matplotlib

X Title: [Bug]: boxplot errors when `x` and `tick_labels` are empty · Issue #32304 · matplotlib/matplotlib

Description: Bug summary boxplot errors when the arguments x and tick_labels are both empty. Code for reproduction from matplotlib import pyplot as plt plt.boxplot([], tick_labels=[]) Actual outcome Traceback (most recent call last): File "",...

Open Graph Description: Bug summary boxplot errors when the arguments x and tick_labels are both empty. Code for reproduction from matplotlib import pyplot as plt plt.boxplot([], tick_labels=[]) Actual outcome Traceback (...

X Description: Bug summary boxplot errors when the arguments x and tick_labels are both empty. Code for reproduction from matplotlib import pyplot as plt plt.boxplot([], tick_labels=[]) Actual outcome Traceback (...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32304

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: boxplot errors when `x` and `tick_labels` are empty","articleBody":"### Bug summary\n\n[`boxplot`](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.boxplot.html) errors when the arguments `x` and `tick_labels` are both empty.\n\n### Code for reproduction\n\n```Python\nfrom matplotlib import pyplot as plt\n\nplt.boxplot([], tick_labels=[])\n```\n\n### Actual outcome\n\n```\nTraceback (most recent call last):\n  File \"\u003cstring>\", line 1, in \u003cmodule>\n    from matplotlib import pyplot as plt; plt.boxplot([], tick_labels=[])\n                                          ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^\n  File \"/venv/lib/python3.14/site-packages/matplotlib/_api/deprecation.py\", line 477, in wrapper\n    return func(*args, **kwargs)\n  File \"/venv/lib/python3.14/site-packages/matplotlib/pyplot.py\", line 3234, in boxplot\n    return gca().boxplot(\n           ~~~~~~~~~~~~~^\n        x,\n        ^^\n    ...\u003c28 lines>...\n        **({\"data\": data} if data is not None else {}),\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    )\n    ^\n  File \"/venv/lib/python3.14/site-packages/matplotlib/_api/deprecation.py\", line 477, in wrapper\n    return func(*args, **kwargs)\n  File \"/venv/lib/python3.14/site-packages/matplotlib/__init__.py\", line 1528, in inner\n    return func(\n        ax,\n        *map(cbook.sanitize_sequence, args),\n        **{k: cbook.sanitize_sequence(v) for k, v in kwargs.items()})\n  File \"/venv/lib/python3.14/site-packages/matplotlib/axes/_axes.py\", line 4541, in boxplot\n    bxpstats = cbook.boxplot_stats(x, whis=whis, bootstrap=bootstrap,\n                                   labels=tick_labels, autorange=autorange)\n  File \"/venv/lib/python3.14/site-packages/matplotlib/cbook.py\", line 1269, in boxplot_stats\n    raise ValueError(\"Dimensions of labels and X must be compatible\")\nValueError: Dimensions of labels and X must be compatible\n```\n\n### Expected outcome\n\nDrawing nothing, without crashing.\n\n### Additional information\n\nThe error is raised [here](https://github.com/matplotlib/matplotlib/blob/f3877c54e25baefc2605d6260cb7ef44b5edbb12/lib/matplotlib/cbook.py#L1268).\n\nThis happens because `_reshape_2D([], \"X\")` is returning `[[]]`, which has a `len` of 1 rather than 0.\n\n### Operating system\n\nmacOS Tahoe 26.5.2\n\n### Matplotlib Version\n\n3.11.1\n\n### Matplotlib Backend\n\nmacosx\n\n### Python version\n\nPython 3.14.6\n\n### Jupyter version\n\n7.6.0\n\n### Installation\n\npip","author":{"url":"https://github.com/carlosgmartin","@type":"Person","name":"carlosgmartin"},"datePublished":"2026-09-05T18:11:03Z","url":"https://github.com/matplotlib/matplotlib/issues/32304"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fd69a330-d616-f971-aad8-105652ff53d9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9246:33DDEF:1CE2530:276E7E2:6B00166A
html-safe-nonce03e3b1aa932f8de93a78292ad7aa60bb7cc0e9ebd7d1d7b3dcddf497a236f1cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjQ2OjMzRERFRjoxQ0UyNTMwOjI3NkU3RTI6NkIwMDE2NkEiLCJ2aXNpdG9yX2lkIjoiNTMwMjM5NDMyNzUwNTM2Mjk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace18926425e2fe1e3b0d1098352781268d2c03ad516e30cbf9b98a8d81c1680ec
hovercard-subject-tagissue:5359963836
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/matplotlib/matplotlib/32304/issue_layout
twitter:imagehttps://opengraph.githubassets.com/56f209459b7531381ed9ac38a7ab094f46be1fcfbefae8b7394309ef10d7bbfe/matplotlib/matplotlib/issues/32304
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/56f209459b7531381ed9ac38a7ab094f46be1fcfbefae8b7394309ef10d7bbfe/matplotlib/matplotlib/issues/32304
og:image:altBug summary boxplot errors when the arguments x and tick_labels are both empty. Code for reproduction from matplotlib import pyplot as plt plt.boxplot([], tick_labels=[]) Actual outcome Traceback (...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecarlosgmartin
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
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
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/32304#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32304
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32304
Sign uphttps://github.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=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/32304
Reloadhttps://github.com/matplotlib/matplotlib/issues/32304
Reloadhttps://github.com/matplotlib/matplotlib/issues/32304
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests432 (432)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32304
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32304
[Bug]: boxplot errors when x and tick_labels are emptyhttps://github.com/matplotlib/matplotlib/issues/32304#top
topic: plotting methodshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20plotting%20methods%22
topic: ticks axis labelshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20ticks%20axis%20labels%22
https://github.com/carlosgmartin
carlosgmartinhttps://github.com/carlosgmartin
on Sep 5, 2026https://github.com/matplotlib/matplotlib/issues/32304#issue-5359963836
boxplothttps://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.boxplot.html
herehttps://github.com/matplotlib/matplotlib/blob/f3877c54e25baefc2605d6260cb7ef44b5edbb12/lib/matplotlib/cbook.py#L1268
https://github.com/iccir
iccirhttps://github.com/iccir
on Sep 5, 2026https://github.com/matplotlib/matplotlib/issues/32304#issuecomment-5554480534
iccirhttps://github.com/iccir
topic: plotting methodshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20plotting%20methods%22
topic: ticks axis labelshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20ticks%20axis%20labels%22
on Sep 5, 2026https://github.com/matplotlib/matplotlib/issues/32304#event-30619493076
https://github.com/rcomer
rcomerhttps://github.com/rcomer
on Sep 12, 2026https://github.com/matplotlib/matplotlib/issues/32304#issuecomment-5645766711
@carlosgmartinhttps://github.com/carlosgmartin
rcomerhttps://github.com/rcomer
status: needs clarificationIssues that need more information to resolve.https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20clarification%22
on Sep 12, 2026https://github.com/matplotlib/matplotlib/issues/32304#event-31020083172
https://github.com/rcomer
rcomerhttps://github.com/rcomer
on Sep 12, 2026https://github.com/matplotlib/matplotlib/issues/32304#issuecomment-5645934930
https://github.com/carlosgmartin
carlosgmartinhttps://github.com/carlosgmartin
on Sep 12, 2026https://github.com/matplotlib/matplotlib/issues/32304#issuecomment-5647002961
@rcomerhttps://github.com/rcomer
rcomerhttps://github.com/rcomer
status: needs clarificationIssues that need more information to resolve.https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20clarification%22
on Sep 12, 2026https://github.com/matplotlib/matplotlib/issues/32304#event-31026128426
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/32304
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32304
topic: plotting methodshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20plotting%20methods%22
topic: ticks axis labelshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20ticks%20axis%20labels%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.