Title: [MNT]: Is broken_barh redundant? · Issue #24827 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Is broken_barh redundant? · Issue #24827 · matplotlib/matplotlib
X Title: [MNT]: Is broken_barh redundant? · Issue #24827 · matplotlib/matplotlib
Description: Summary broken_barh() documentation does not mention barh() but they seem very similar. I'm able to replace calls to broken_barh() with a call to this: def broken_barh_using_barh(ax, xranges, yrange, **kwargs): kwargs2={'align':'edge'} f...
Open Graph Description: Summary broken_barh() documentation does not mention barh() but they seem very similar. I'm able to replace calls to broken_barh() with a call to this: def broken_barh_using_barh(ax, xranges, yrang...
X Description: Summary broken_barh() documentation does not mention barh() but they seem very similar. I'm able to replace calls to broken_barh() with a call to this: def broken_barh_using_barh(ax, xranges, y...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24827
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Is broken_barh redundant?","articleBody":"### Summary\n\n`broken_barh()` [documentation ](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.broken_barh.html )does not mention [`barh()`](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.barh.html) but they seem very similar. I'm able to replace calls to `broken_barh()` with a call to this:\r\n```python\r\ndef broken_barh_using_barh(ax, xranges, yrange, **kwargs):\r\n kwargs2={'align':'edge'} \r\n for k,v in kwargs.items():\r\n if k == 'facecolors':\r\n kwargs2['color'] = v\r\n else:\r\n kwargs2[k] = v\r\n ax.barh(y=yrange[0], height=yrange[1], left=[x[0] for x in xranges], width=[x[1] for x in xranges], **kwargs2)\r\n```\r\n\r\nSo is there something that `broken_barh()` offers that `barh()` doesn't?\r\n\n\n### Proposed fix\n\nIt would help to document the difference if there is a meaningful one, otherwise perhaps deprecate `broken_barh()`.","author":{"url":"https://github.com/omasoud","@type":"Person","name":"omasoud"},"datePublished":"2022-12-27T23:52:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/24827/matplotlib/issues/24827"}
| 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:b4ee87ed-d537-23b3-6a50-7339c6c60843 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8E0:3A06E8:8349FD:B9B136:6A510565 |
| html-safe-nonce | afc4dba4f043863fc65a932dc8eeb83287dcb461c9d1a8c41685a8db1826e88d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEUwOjNBMDZFODo4MzQ5RkQ6QjlCMTM2OjZBNTEwNTY1IiwidmlzaXRvcl9pZCI6IjM5NjIzMDE4NzI4ODczNjcwMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 130bb946760fe715eb32ad1d5ecfda2d2fe2b641c3a626d6ebd6eb7c4faa0a7f |
| hovercard-subject-tag | issue:1512265839 |
| 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/24827/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11762d21a6b8e94be904a9c86ab082c3874fea1977bff1dfbcbf37bc772fd681/matplotlib/matplotlib/issues/24827 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11762d21a6b8e94be904a9c86ab082c3874fea1977bff1dfbcbf37bc772fd681/matplotlib/matplotlib/issues/24827 |
| og:image:alt | Summary broken_barh() documentation does not mention barh() but they seem very similar. I'm able to replace calls to broken_barh() with a call to this: def broken_barh_using_barh(ax, xranges, yrang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | omasoud |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| 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 | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width