Title: [Bug]: when using histtype, linestyle is not carried through to plot · Issue #29955 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: when using histtype, linestyle is not carried through to plot · Issue #29955 · matplotlib/matplotlib
X Title: [Bug]: when using histtype, linestyle is not carried through to plot · Issue #29955 · matplotlib/matplotlib
Description: Bug summary Prior to the current matplotlib version, when using histtype='step' in pyplot.hist you could customize the linestyle with that command. Now, linestyle is not being used and all lines are coming out as 'solid' Code for reprodu...
Open Graph Description: Bug summary Prior to the current matplotlib version, when using histtype='step' in pyplot.hist you could customize the linestyle with that command. Now, linestyle is not being used and all lines ar...
X Description: Bug summary Prior to the current matplotlib version, when using histtype='step' in pyplot.hist you could customize the linestyle with that command. Now, linestyle is not being used and all ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29955
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: when using histtype, linestyle is not carried through to plot","articleBody":"### Bug summary\n\nPrior to the current matplotlib version, when using histtype='step' in pyplot.hist you could customize the linestyle with that command. Now, linestyle is not being used and all lines are coming out as 'solid' \n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\ndat=[0,1,2,3,4,5,2,3,4,5,4,5,5]\nplt.figure()\nplt.hist(dat,bins=3,ls='solid',color='k',histtype='step')\nplt.show()\nplt.figure()\nplt.hist(dat,bins=3,ls='dotted',color='k',histtype='step')\nplt.show()\n```\n\n### Actual outcome\n\ntwo plots, both showing the same graphic\n\n### Expected outcome\n\nthe second plot should have a dotted line, not a solid line\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nOS/X\n\n### Matplotlib Version\n\n3.10.0\n\n### Matplotlib Backend\n\nmacosx\n\n### Python version\n\nPython 3.11.9\n\n### Jupyter version\n\nn/a\n\n### Installation\n\npip","author":{"url":"https://github.com/joemasiero","@type":"Person","name":"joemasiero"},"datePublished":"2025-04-21T19:13:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/29955/matplotlib/issues/29955"}
| 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:960141a3-57c0-805c-4484-fe1db7a0d914 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1D0:2BE11D:9A515F:D0EDFE:6A5201AA |
| html-safe-nonce | b1cc9a1953e44b2a57b6f75c6fd933cac67288bae830272f0d98a50151561a6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUQwOjJCRTExRDo5QTUxNUY6RDBFREZFOjZBNTIwMUFBIiwidmlzaXRvcl9pZCI6IjQxNDkzNjYwMjA5NTg3MTYzMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b22e079930559a92a722c5071ee3d24588a793ce88761545c846464be40a217a |
| hovercard-subject-tag | issue:3009109621 |
| 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/29955/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac0e25deded0a275ba6bdced852c4c4c57e8bd34b44d4f593360c54e0fc699a1/matplotlib/matplotlib/issues/29955 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac0e25deded0a275ba6bdced852c4c4c57e8bd34b44d4f593360c54e0fc699a1/matplotlib/matplotlib/issues/29955 |
| og:image:alt | Bug summary Prior to the current matplotlib version, when using histtype='step' in pyplot.hist you could customize the linestyle with that command. Now, linestyle is not being used and all lines ar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joemasiero |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width