Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: reword non-monotonic cell center warning #18483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

jklymak
Copy link
Member

@jklymak jklymak commented Sep 14, 2020

PR Summary

Slight modification to the warning in #18398.

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and pydocstyle<4 and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

@jklymak jklymak added this to the v3.3.2 milestone Sep 14, 2020
@jklymak jklymak force-pushed the doc-reword-warning branch 2 times, most recently from 48cc170 to 3ab4146 Compare September 14, 2020 20:39
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No very strong opinion, but here's another wording:

The input coordinates to {funcname} are interpreted as cell centers but are not monotonically increasing or decreasing. This may lead to wrongly calculated mesh cell edges. In such a case, please supply explicit cell edges to {funcname}.

@jklymak
Copy link
Member Author

jklymak commented Sep 15, 2020

Thanks @timhoffm - edited yours a bit, but that is better.

@dopplershift
Copy link
Contributor

Doesn't look like you updated the expected text in the test?

@QuLogic QuLogic changed the title DOC: reword non-monotinc cell center warning DOC: reword non-monotonic cell center warning Sep 15, 2020
@QuLogic
Copy link
Member

QuLogic commented Sep 15, 2020

I pushed a fix to the tests, as this is the last thing for 3.3.2.

@QuLogic QuLogic merged commit 7429c2b into matplotlib:master Sep 15, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 15, 2020
QuLogic added a commit that referenced this pull request Sep 15, 2020
…483-on-v3.3.x

Backport PR #18483 on branch v3.3.x (DOC: reword non-monotonic cell center warning)
@greglucas
Copy link
Contributor

I like these wording changes, thanks for fixing that up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants