Title: cannot set default drawstyle (to 'steps-post') · Issue #12582 · matplotlib/matplotlib · GitHub
Open Graph Title: cannot set default drawstyle (to 'steps-post') · Issue #12582 · matplotlib/matplotlib
X Title: cannot set default drawstyle (to 'steps-post') · Issue #12582 · matplotlib/matplotlib
Description: Bug report Bug summary Cannot set drawstyle default to 'steps-post' in 3.0.0 In 2.0.2 I could set the default drawstyle by settings rcParams['lines.linestyle']. In 3.0.0, it barfs. Is there a different way to set this? I don't see any rc...
Open Graph Description: Bug report Bug summary Cannot set drawstyle default to 'steps-post' in 3.0.0 In 2.0.2 I could set the default drawstyle by settings rcParams['lines.linestyle']. In 3.0.0, it barfs. Is there a diffe...
X Description: Bug report Bug summary Cannot set drawstyle default to 'steps-post' in 3.0.0 In 2.0.2 I could set the default drawstyle by settings rcParams['lines.linestyle']. In 3.0.0, it barfs. ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12582
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cannot set default drawstyle (to 'steps-post')","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nCannot set drawstyle default to 'steps-post' in 3.0.0\r\n\r\nIn 2.0.2 I could set the default drawstyle by settings rcParams['lines.linestyle']. In 3.0.0, it barfs.\r\n\r\nIs there a different way to set this? I don't see any rcParams keys that reference drawstyle or look like they could be impacting drawstyle\r\n\r\n**Code for reproduction**\r\n\r\n```\r\nPython 3.5.4 |Continuum Analytics, Inc.| (default, Aug 14 2017, 13:26:58)\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: import matplotlib\r\n\r\nIn [2]: matplotlib.__version__\r\nOut[2]: '2.0.2'\r\n\r\nIn [3]: matplotlib.rcParams['lines.linestyle'] = 'steps-post'\r\n\r\nIn [4]: print(matplotlib.get_backend())\r\nQt5Agg\r\n```\r\nIn 3.0.0, this happens\r\n```\r\nPython 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51)\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 7.0.1 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: import matplotlib\r\n\r\nIn [2]: matplotlib.__version__\r\nOut[2]: '3.0.0'\r\n\r\nIn [3]: matplotlib.rcParams['lines.linestyle'] = 'steps-post'\r\n---------------------------------------------------------------------------\r\nValueError Traceback (most recent call last)\r\n~/.conda/envs/bamboo/lib/python3.6/site-packages/matplotlib/__init__.py in __setitem__(self, key, val)\r\n 860 try:\r\n--\u003e 861 cval = self.validate[key](val)\r\n 862 except ValueError as ve:\r\n\r\n~/.conda/envs/bamboo/lib/python3.6/site-packages/matplotlib/rcsetup.py in _validate_linestyle(ls)\r\n 949 if isinstance(ls, (str, bytes, bytearray)):\r\n--\u003e 950 return _validate_named_linestyle(ls)\r\n 951\r\n\r\n~/.conda/envs/bamboo/lib/python3.6/site-packages/matplotlib/rcsetup.py in __call__(self, s)\r\n 64 raise ValueError('Unrecognized %s string %r: valid strings are %s'\r\n---\u003e 65 % (self.key, s, list(self.valid.values())))\r\n 66\r\n\r\nValueError: Unrecognized linestyle string 'steps-post': valid strings are ['-', '--', '-.', ':', 'solid', 'dashed', 'dashdot', 'dotted', 'none', ' ', '']\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nValueError Traceback (most recent call last)\r\n\u003cipython-input-3-7f838b7219da\u003e in \u003cmodule\u003e\r\n----\u003e 1 matplotlib.rcParams['lines.linestyle'] = 'steps-post'\r\n\r\n~/.conda/envs/bamboo/lib/python3.6/site-packages/matplotlib/__init__.py in __setitem__(self, key, val)\r\n 861 cval = self.validate[key](val)\r\n 862 except ValueError as ve:\r\n--\u003e 863 raise ValueError(\"Key %s: %s\" % (key, str(ve)))\r\n 864 dict.__setitem__(self, key, cval)\r\n 865 except KeyError:\r\n\r\nValueError: Key lines.linestyle: Unrecognized linestyle string 'steps-post': valid strings are ['-', '--', '-.', ':', 'solid', 'dashed', 'dashdot', 'dotted', 'none', ' ', '']\r\n\r\nIn [4]: print(matplotlib.get_backend())\r\nQt5Agg\r\n```","author":{"url":"https://github.com/tsdlovell","@type":"Person","name":"tsdlovell"},"datePublished":"2018-10-21T14:50:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/12582/matplotlib/issues/12582"}
| 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:7c0f1ffc-2e9d-4b10-8986-ff872f6c86a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEDA:2F0FE8:FE6CE0:1523950:6A53358A |
| html-safe-nonce | 1d3802ac1dd7cc1343c54e9aec00f291b10ce2392f0eaa6524242ec8e197fdb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERURBOjJGMEZFODpGRTZDRTA6MTUyMzk1MDo2QTUzMzU4QSIsInZpc2l0b3JfaWQiOiI0MTYxNzc5NTE4OTk1OTYxNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7f4a5d58af89352a237e8931983efc91c2e769940b1a159fd3863baf9eaff22f |
| hovercard-subject-tag | issue:372322665 |
| 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/12582/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c39e7e875a7b2848aefaf7799d8eddcb131f057c550cc72b19a0419ebdfcfd6/matplotlib/matplotlib/issues/12582 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c39e7e875a7b2848aefaf7799d8eddcb131f057c550cc72b19a0419ebdfcfd6/matplotlib/matplotlib/issues/12582 |
| og:image:alt | Bug report Bug summary Cannot set drawstyle default to 'steps-post' in 3.0.0 In 2.0.2 I could set the default drawstyle by settings rcParams['lines.linestyle']. In 3.0.0, it barfs. Is there a diffe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tsdlovell |
| 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