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

Deprecate \stackrel. by anntzer · Pull Request #12150 · matplotlib/matplotlib · GitHub

Repository navigation

Deprecate \stackrel. - #12150

Merged
jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:stackrel
Feb 22, 2019
Merged

jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:stackrel

Conversation

anntzer commented Sep 18, 2018

Copy link
Copy Markdown
Contributor

Mathtext's \stackrel{a}{b} behaves subtly differently from latex's
\stackrel{a}{b}: mathtext makes a and b equal-sized whereas latex
makes a smaller than b (a is an "annotation" over b). Given
that we can already stack expressions using the (admittedly less
practical, but standard) \genfrac, just deprecate \stackrel instead of
maintaining our own latex-like dialect.

Also undeprecate passing obj_type to the cbook.deprecated decorator(!),
given that this PR has a good reason to use it... and while we're at it,
reorder the kwargs docs for cbook.deprecated and cbook.warn_deprecated
to match the order in the signature.

Again related to #12108 / #12128 (:mathmpl: still exists because mathtext is subtly different from latex).

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

tacaswell added this to the v3.1 milestone Sep 18, 2018
anntzer force-pushed the stackrel branch 2 times, most recently from 90b3bc1 to cec36cd Compare October 5, 2018 14:17

jklymak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fine w/ me. Doubt this is the most heavily used corner of the codebase...

anntzer commented Feb 10, 2019

Copy link
Copy Markdown
Contributor Author

rebased

Mathtext's \stackrel{a}{b} behaves subtly differently from latex's
\stackrel{a}{b}: mathtext makes `a` and `b` equal-sized whereas latex
makes `a` smaller than `b` (`a` is an "annotation" over `b`).  Given
that we can already stack expressions using the (admittedly less
practical, but standard) \genfrac, just deprecate \stackrel instead of
maintaining our own latex-like dialect.

Also undeprecate passing obj_type to the cbook.deprecated decorator(!),
given that this PR has a good reason to use it... and while we're at it,
reorder the kwargs docs for cbook.deprecated and cbook.warn_deprecated
to match the order in the signature.

timhoffm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Subject to CI pass.

timhoffm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Subject to CI pass.

jklymak commented Feb 22, 2019

Copy link
Copy Markdown
Member

CI failures unrelated...

jklymak merged commit 977f415 into matplotlib:master Feb 22, 2019
anntzer deleted the stackrel branch February 22, 2019 22:40
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL