FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BUG: handle empty levels array in contour, closes #7486 by efiring · Pull Request #8719 · matplotlib/matplotlib · GitHub

Repository navigation

BUG: handle empty levels array in contour, closes #7486 - #8719

Merged
dstansby merged 1 commit into
matplotlib:masterfrom
efiring:contour_validation
Jun 14, 2017
Merged

dstansby merged 1 commit into
matplotlib:masterfrom
efiring:contour_validation

Conversation

efiring commented Jun 4, 2017

Copy link
Copy Markdown
Member

This relates to line contours only, not to filled contours.

This handles the case where an empty array is provided as the
"levels" kwarg, or where for any reason there are no levels within
the data range. An example is the case of uniform z. The
levels array is then set to the minimum value of z so that
the plotting can proceed, and a warning is generated.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/whats_new.rst if major new feature
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

This relates to line contours only, not to filled contours.

This handles the case where an empty array is provided as the
"levels" kwarg, or where for any reason there are no levels within
the data range.  An example is the case of uniform z. The
levels array is then set to the minimum value of z so that
the plotting can proceed, and a warning is generated.
efiring added this to the 2.1 (next point release) milestone Jun 4, 2017
dstansby merged commit 6ed951e into matplotlib:master Jun 14, 2017
efiring deleted the contour_validation branch October 24, 2021 19:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL