and the docs aren't especially clear either on this being a property:
Axes.format_xdata(self, x)
Return x formatted as an x-value.
This function will use the fmt_xdata attribute if it is not None, else will fall back on the xaxis major formatter.
To be consistent with the API, I'm proposing properties/functions of the form:
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
anntzer commented on Apr 30, 2020
Really this should be called something like set_xcursor_formatter, data is just too vague.
story645 commented on Apr 30, 2020
Agree, and should also steal from #16715 that it should take a str, callable, or mticker instance.
story645 commented on May 4, 2020
And xref #9593 'cause fixing this issue should maybe help fix that one?
github-actions commented on Mar 30, 2026
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!