Skip to content

MNT: Update internal usages of privatized Formatter attributes in ticker.py#39

Merged
timhoffm merged 1 commit intotimhoffm:mnt-deprecate-formatter-attrsfrom
buddy0452004:mnt-deprecate-formatter-attrs
Apr 11, 2026
Merged

MNT: Update internal usages of privatized Formatter attributes in ticker.py#39
timhoffm merged 1 commit intotimhoffm:mnt-deprecate-formatter-attrsfrom
buddy0452004:mnt-deprecate-formatter-attrs

Conversation

@buddy0452004
Copy link
Copy Markdown

This is a follow-up contribution to matplotlib#31416.

The internal usages of locs, orderOfMagnitude, and format in ticker.py were still referencing the old public attribute names, causing the tests to fail. This commit updates all of them to use the private names (_locs, _orderOfMagnitude, _format) across ScalarFormatter, LogitFormatter, EngFormatter, and PercentFormatter. sankey.py was not changed since its format attribute belongs to a completely different class.

Works towards matplotlib#31396.

PR checklist

  • [N/A] "closes #0000" is in the body of the PR description
  • [N/A] new and changed code is tested
  • [N/A] Plotting related features are demonstrated in an example
  • [N/A] New Features and API Changes are noted with a directive and release note
  • [N/A] Documentation complies with general and docstring guidelines

@timhoffm timhoffm merged commit 46ee6ca into timhoffm:mnt-deprecate-formatter-attrs Apr 11, 2026
3 checks passed
@timhoffm
Copy link
Copy Markdown
Owner

Thanks @buddy0452004 !

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.

2 participants