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

Skip to content

Merge pull request #16404 from jklymak/fix-add-base-symlognorm #16541

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

Conversation

tacaswell
Copy link
Member

FIX: add base kwarg to symlognor

Conflicts:
doc/api/next_api_changes/behaviour.rst
- moved to
doc/api/prev_api_changes/api_changes_3.2.0/behavior.rst and re-worded.
lib/matplotlib/colors.py
- implicitly backported converting the docstring to numpy
doc style. Re-worded new docstring

PR Summary

PR Checklist

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

FIX: add base kwarg to symlognor

Conflicts:
	doc/api/next_api_changes/behaviour.rst
          - moved to
            doc/api/prev_api_changes/api_changes_3.2.0/behavior.rst and re-worded.
	lib/matplotlib/colors.py
          - implicitly backported converting the docstring to numpy
            doc style.  Re-worded new docstring
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Feb 16, 2020
@tacaswell tacaswell added this to the v3.2.0 milestone Feb 16, 2020
@NelleV
Copy link
Member

NelleV commented Feb 18, 2020

If that's a backport, it be merged.

@tacaswell
Copy link
Member Author

I changed the wording a bit so even though this is a backport, it should be reviewed as a normal PR.

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

Since there are some changes, here are a few suggestions.

half of the linear range. For example, when *linscale* == 1.0
(the default), the space used for the positive and negative halves
of the linear range will be equal to a decade in the logarithmic
range if ``base=10``.
Copy link
Member

Choose a reason for hiding this comment

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

A small tweak (to the original) for the example sentence, but instead of "When x, then y, if z", it'd be better to put the conditions together as "When x and z, then y."

Comment on lines 1229 to 1230
If not given, defaults to ``np.e``, consistent with prior
behavior and warns.
Copy link
Member

Choose a reason for hiding this comment

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

The parenthetical is a bit confusing, perhaps:

Suggested change
If not given, defaults to ``np.e``, consistent with prior
behavior and warns.
If not given, defaults to ``np.e`` (consistent with prior behavior), and warns.

@jklymak jklymak merged commit bebc51a into matplotlib:v3.2.x Feb 21, 2020
@jklymak
Copy link
Member

jklymak commented Feb 21, 2020

Should some of these suggestions be pulled forward into master?

@tacaswell tacaswell deleted the auto-backport-of-pr-16404-on-v3.2.x branch February 25, 2020 06:39
@tacaswell
Copy link
Member Author

@jklymak Yes, I'll take care of that when I merge 3.2.x up to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants