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

Skip to content

Make unicode_minus example more focused. #13945

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
Apr 21, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Apr 13, 2019

... by actually showcasing the difference between unicode minus and
ascii hyphen.

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

minus, which some people prefer. :rc:`axes.unicode_minus` controls the default
behavior.
By default, tick labels at negative values are rendered using a `Unicode
minus`__ (U+2212) rathen than an ASCII hyphen (U+002D). This can be controlled
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
minus`__ (U+2212) rathen than an ASCII hyphen (U+002D). This can be controlled
minus`__ (U+2212) rather than an ASCII hyphen (U+002D). This can be controlled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, edited

... by actually showcasing the difference between unicode minus and
ascii hyphen.
behavior.
By default, tick labels at negative values are rendered using a `Unicode
minus`__ (U+2212) rather than an ASCII hyphen (U+002D). This can be controlled
by setting :rc:`axes.unicode_minus` (which defaults to True).
Copy link
Member

Choose a reason for hiding this comment

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

This sentence seems incomplete:

Suggested change
by setting :rc:`axes.unicode_minus` (which defaults to True).
by setting :rc:`axes.unicode_minus` (which defaults to True) to False.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"It can be controlled by setting the rcParam (meaning, to either value)"?

Copy link
Member

Choose a reason for hiding this comment

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

I think it is fine the way it is.

behavior.
By default, tick labels at negative values are rendered using a `Unicode
minus`__ (U+2212) rather than an ASCII hyphen (U+002D). This can be controlled
by setting :rc:`axes.unicode_minus` (which defaults to True).
Copy link
Member

Choose a reason for hiding this comment

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

I think it is fine the way it is.

@efiring efiring merged commit 6a55cd9 into matplotlib:master Apr 21, 2019
@anntzer anntzer deleted the unicodeminus branch April 22, 2019 05:55
@timhoffm timhoffm added this to the v3.2.0 milestone Apr 23, 2019
@timhoffm
Copy link
Member

I've set the milestone post-merge to indicate which version is actually targeted by merging into the current master.

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.

4 participants