Title: Warning treated as error while generating docs · Issue #8145 · matplotlib/matplotlib · GitHub
Open Graph Title: Warning treated as error while generating docs · Issue #8145 · matplotlib/matplotlib
X Title: Warning treated as error while generating docs · Issue #8145 · matplotlib/matplotlib
Description: Bug report Bug summary I get the following WARNING while generating docs. Warning, treated as error: /home/aashil/github/matplotlib/doc/api/_as_gen/matplotlib.axes.Axes.clabel.rst:83: WARNING: Exception occurred in plotting contour_demo ...
Open Graph Description: Bug report Bug summary I get the following WARNING while generating docs. Warning, treated as error: /home/aashil/github/matplotlib/doc/api/_as_gen/matplotlib.axes.Axes.clabel.rst:83: WARNING: Exce...
X Description: Bug report Bug summary I get the following WARNING while generating docs. Warning, treated as error: /home/aashil/github/matplotlib/doc/api/_as_gen/matplotlib.axes.Axes.clabel.rst:83: WARNING: Exce...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8145
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warning treated as error while generating docs","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nI get the following `WARNING` while generating docs.\r\n\r\n```\r\nWarning, treated as error:\r\n/home/aashil/github/matplotlib/doc/api/_as_gen/matplotlib.axes.Axes.clabel.rst:83: WARNING: Exception occurred in plotting contour_demo\r\n from /home/aashil/github/matplotlib/doc/mpl_examples/pylab_examples/contour_demo.py:\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.0+3486.g8c57dae-py2.7-linux-x86_64.egg/matplotlib/sphinxext/plot_directive.py\", line 525, in run_code\r\n six.exec_(code, ns)\r\n File \"/usr/local/lib/python2.7/dist-packages/six.py\", line 699, in exec_\r\n exec(\"\"\"exec _code_ in _globs_, _locs_\"\"\")\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\n File \"\u003cstring\u003e\", line 55, in \u003cmodule\u003e\r\n File \"/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.0+3486.g8c57dae-py2.7-linux-x86_64.egg/matplotlib/__init__.py\", line 916, in __setitem__\r\n raise ValueError(\"Key %s: %s\" % (key, str(ve)))\r\nValueError: Key contour.negative_linestyle: linestyle must be a string or an even-length sequence of floats.\r\n\r\nBuilding HTML failed.\r\n```\r\nThe command from `contour_demo.py` which throws the warning is:\r\n```\r\nCS = plt.contour(Z, levels,\r\n origin='lower',\r\n linewidths=2,\r\n extent=(-3, 3, -2, 2))\r\n```\r\n\r\nI think it's expecting positive values for extent.\r\n\r\n\r\n**Code for reproduction**\r\n\r\n- A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required\r\n\r\n```python\r\npython make.py html\r\n```\r\n**Matplotlib version**\r\n\r\n- Matplotlib version 2.0.0+3486.g8c57dae, Python version 2.7.12 and Platform (Ubuntu 16.04)\r\n- I built Matplotlib from sources and python came pre-installed with Ubuntu 16.04\r\n\r\n","author":{"url":"https://github.com/aashil","@type":"Person","name":"aashil"},"datePublished":"2017-02-25T04:27:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/8145/matplotlib/issues/8145"}
| 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:b7427589-9e5f-96e3-8731-d1d136143d64 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE62:1D923B:E8FDF8:1390651:6A543ED0 |
| html-safe-nonce | a1efddfae383df66eb30658062c205763f41221d78f772eddedf1cd458da860b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTYyOjFEOTIzQjpFOEZERjg6MTM5MDY1MTo2QTU0M0VEMCIsInZpc2l0b3JfaWQiOiI1Njk0NTYyOTEzMjMyMzcxNDA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a2bfb0b2e01c1fa3eaa64caf0f2b639123da24b8f0532e3b03c1741742b0d2c3 |
| hovercard-subject-tag | issue:210209710 |
| 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/8145/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a945ca733967ee0d933e14ff68491f1ccf707b4c56754cde0f4efb0f93f0f19d/matplotlib/matplotlib/issues/8145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a945ca733967ee0d933e14ff68491f1ccf707b4c56754cde0f4efb0f93f0f19d/matplotlib/matplotlib/issues/8145 |
| og:image:alt | Bug report Bug summary I get the following WARNING while generating docs. Warning, treated as error: /home/aashil/github/matplotlib/doc/api/_as_gen/matplotlib.axes.Axes.clabel.rst:83: WARNING: Exce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aashil |
| 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