Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Warning treated as error while generating docs #8145

Closed
Assignees
afvincent
Milestone
@aashil

Description

@aashil

Bug report

Bug summary

I get the followingWARNING 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 from /home/aashil/github/matplotlib/doc/mpl_examples/pylab_examples/contour_demo.py:Traceback (most recent call last):  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    six.exec_(code, ns)  File "/usr/local/lib/python2.7/dist-packages/six.py", line 699, in exec_    exec("""exec _code_ in _globs_, _locs_""")  File "<string>", line 1, in <module>  File "<string>", line 55, in <module>  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__    raise ValueError("Key %s: %s" % (key, str(ve)))ValueError: Key contour.negative_linestyle: linestyle must be a string or an even-length sequence of floats.Building HTML failed.

The command fromcontour_demo.py which throws the warning is:

CS = plt.contour(Z, levels,                 origin='lower',                 linewidths=2,                 extent=(-3, 3, -2, 2))

I think it's expecting positive values for extent.

Code for reproduction

  • A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required
pythonmake.pyhtml

Matplotlib version

  • Matplotlib version 2.0.0+3486.g8c57dae, Python version 2.7.12 and Platform (Ubuntu 16.04)
  • I built Matplotlib from sources and python came pre-installed with Ubuntu 16.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp