Skip to content

MNT: Privatize Formatter attributes#31416

Open
timhoffm wants to merge 1 commit intomatplotlib:mainfrom
timhoffm:mnt-deprecate-formatter-attrs
Open

MNT: Privatize Formatter attributes#31416
timhoffm wants to merge 1 commit intomatplotlib:mainfrom
timhoffm:mnt-deprecate-formatter-attrs

Conversation

@timhoffm
Copy link
Copy Markdown
Member

These attributes are internal state and users should not access them:

ScalarFormatter.orderOfMagnitude
ScalarFormatter.format
ConciseDateFormatter.offset_format
Formatter.locs

Making them private will allow rearchitecting the handling of tick context (i.e. information extracted from a group of ticks, that may influence their formatting) in the future.

This works towards #31396.

@timhoffm timhoffm force-pushed the mnt-deprecate-formatter-attrs branch from 7059dc8 to 310092b Compare March 28, 2026 07:18
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.

1 participant