-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
axes.format_{x,y} data should have a setter #17286
Copy link
Copy link
Open
Labels
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Consistency of the matplotlib API, including naming, behavior, defaults, …keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Action
Milestone
Metadata
Metadata
Assignees
Labels
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Consistency of the matplotlib API, including naming, behavior, defaults, …keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Action
Type
Fields
Give feedbackNo fields configured for issues without a type.
In the Date tick labels example, the code for setting the cursor coords message overwrites the default formatters:
This creates confusion because runs counter to how basically everything else in matplotlib is set via setter but especially the formatters:
and the docs aren't especially clear either on this being a property:
To be consistent with the API, I'm proposing properties/functions of the form:
ax.{x,y}data_formatter(mdates.DateFormatter('%Y-%m-%d'))ax.data_formatter(which=(x,y, both), mdates.DateFormatter('%Y-%m-%d'))