Title: [MNT]: DISCUSSION: Should Axes.grouped_bar() apply a default hatch pattern when none is provided? · Issue #30728 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: DISCUSSION: Should Axes.grouped_bar() apply a default hatch pattern when none is provided? · Issue #30728 · matplotlib/matplotlib
X Title: [MNT]: DISCUSSION: Should Axes.grouped_bar() apply a default hatch pattern when none is provided? · Issue #30728 · matplotlib/matplotlib
Description: Summary Currently, when no hatch argument is passed to Axes.grouped_bar(), hatching is entirely disabled: if hatch is None: # No hatch specified: disable hatching entirely by cycling [None]. hatches = itertools.cycle([None]) # TODO: Disc...
Open Graph Description: Summary Currently, when no hatch argument is passed to Axes.grouped_bar(), hatching is entirely disabled: if hatch is None: # No hatch specified: disable hatching entirely by cycling [None]. hatche...
X Description: Summary Currently, when no hatch argument is passed to Axes.grouped_bar(), hatching is entirely disabled: if hatch is None: # No hatch specified: disable hatching entirely by cycling [None]. hatche...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30728
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: DISCUSSION: Should Axes.grouped_bar() apply a default hatch pattern when none is provided?","articleBody":"### Summary\n\nCurrently, when no hatch argument is passed to Axes.grouped_bar(), hatching is entirely disabled:\n\n```\nif hatch is None:\n # No hatch specified: disable hatching entirely by cycling [None].\n hatches = itertools.cycle([None])\n # TODO: Discussion —\n # Should grouped_bar() apply a default hatch pattern (e.g., '//')\n # when none is provided ?\n```\n\nThis behavior matches the philosophy of “explicit is better than implicit,” keeping hatching opt-in.\nHowever, there’s a possible usability question:\nShould grouped_bar() automatically apply a default hatch pattern (for example '//') when multiple datasets are plotted, to help users visually distinguish bars even when colors are similar or when figures are printed in grayscale?\n\nDiscussion Points:\n\nWould automatic hatching improve accessibility and readability (especially in black-and-white printing)?\nShould the default depend on the number of datasets or color distinctness?\n\nFollow-up to the Enh/Add hatch pattern support to Axes.grouped_bar #30726 \n\n### Proposed fix\n\n_No response_","author":{"url":"https://github.com/ilakkmanoharan","@type":"Person","name":"ilakkmanoharan"},"datePublished":"2025-11-05T01:42:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/30728/matplotlib/issues/30728"}
| 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:312ca98d-e41c-7e2b-86a8-1a65ee1c2f7a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4AE:179B13:D137E7:1173D31:6A52A612 |
| html-safe-nonce | 112ee921403bee76fd11dce456bfc78eed0b1262ba3aa413d285320385d77418 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEFFOjE3OUIxMzpEMTM3RTc6MTE3M0QzMTo2QTUyQTYxMiIsInZpc2l0b3JfaWQiOiI1NTMzMjUyMTM2MzkyMTA3NTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | de09314ab4fd336798bc61399d874046ac269f38589baf6a5de91c475c4d2f5e |
| hovercard-subject-tag | issue:3588729591 |
| 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/30728/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d381ffb914506bbfc9da671bd249c4039186e5d42c87773e5e173fc4ca0ac9fd/matplotlib/matplotlib/issues/30728 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d381ffb914506bbfc9da671bd249c4039186e5d42c87773e5e173fc4ca0ac9fd/matplotlib/matplotlib/issues/30728 |
| og:image:alt | Summary Currently, when no hatch argument is passed to Axes.grouped_bar(), hatching is entirely disabled: if hatch is None: # No hatch specified: disable hatching entirely by cycling [None]. hatche... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilakkmanoharan |
| 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