ValueError("Contour levels must be increasing")
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 576
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
Hi Dan
I've been trying in my hobby time to reproduce the results from Becky Smethurst's STARPY code: https://github.com/rjsmethurst/starpy. I hit an error in the histogram function within triangle.py:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/contour.py", line 1233, in _contour_level_args
raise ValueError("Contour levels must be increasing")
It appears the V array is the problem. The issue disappears if I replace triangle.py with corner.py. I'm curious, presumably triangle used to work with an older version matplotlib?
Thanks
Rob
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the histogram failure in triangle.py with the Python 2.7 and matplotlib setup described in the traceback. Compare the histogram path with corner.py, then verify that the contour-level error no longer occurs and that the expected plot is produced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100