Title: [ENH]: Allow list of padding values for bar_label · Issue #29647 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Allow list of padding values for bar_label · Issue #29647 · matplotlib/matplotlib
X Title: [ENH]: Allow list of padding values for bar_label · Issue #29647 · matplotlib/matplotlib
Description: Problem Sometimes when adding labels to bar plots the labels will overlap another item and need padding. In this example the label "300" (column D) is too low and overlaps other text. Ideally I could just provide padding as a list to bar...
Open Graph Description: Problem Sometimes when adding labels to bar plots the labels will overlap another item and need padding. In this example the label "300" (column D) is too low and overlaps other text. Ideally I cou...
X Description: Problem Sometimes when adding labels to bar plots the labels will overlap another item and need padding. In this example the label "300" (column D) is too low and overlaps other text. Ide...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29647
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Allow list of padding values for bar_label","articleBody":"### Problem\n\nSometimes when adding labels to bar plots the labels will overlap another item and need padding. In this example the label \"300\" (column D) is too low and overlaps other text. Ideally I could just provide padding as a list to `bar_label` so that I can target this specific label (instead of the current all-or-nothing float value):\n\n\nWith manually added labels I can add padding to just the desired label, but it would be nice as a built-in option:\n\n\n### Proposed solution\n\nAdd logic to check if the `padding` parameter of `bar_label` is an appropriate-length iterable and apply padding accordingly.","author":{"url":"https://github.com/nhansendev","@type":"Person","name":"nhansendev"},"datePublished":"2025-02-19T19:05:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/29647/matplotlib/issues/29647"}
| 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:c9c23036-c60f-a505-842f-1bf1e3a93ea5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE8A:1D4F69:7CB742:A5F528:6A5307A8 |
| html-safe-nonce | 7faf0471c5a41f5702fdbb24f25823fd9d1f70c882a49371780ef390c3ae8f8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRThBOjFENEY2OTo3Q0I3NDI6QTVGNTI4OjZBNTMwN0E4IiwidmlzaXRvcl9pZCI6IjM0NzU1MjkxOTQ1OTQ4MzAyNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a90557b24854ca3653bf32d66db465f53c614941ec387279ee5aa1797297fc43 |
| hovercard-subject-tag | issue:2864177962 |
| 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/29647/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0756f8e60414eecdf75f481bbca5d9f6666aa1ba29ca42720e0bad463c2d5bd3/matplotlib/matplotlib/issues/29647 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0756f8e60414eecdf75f481bbca5d9f6666aa1ba29ca42720e0bad463c2d5bd3/matplotlib/matplotlib/issues/29647 |
| og:image:alt | Problem Sometimes when adding labels to bar plots the labels will overlap another item and need padding. In this example the label "300" (column D) is too low and overlaps other text. Ideally I cou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nhansendev |
| 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