Skip to content

Warning treated as error while generating docs #8145

@aashil

Description

@aashil

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
 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 from contour_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
python make.py html

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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy