Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove idiosyncratic get_tick_iterator API. #27300

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 9, 2023

It's only ever used essentially to expose GridHelperCurveLinear._grid_info to FixedAxisArtistHelper.get_tick_iterators; it seems better to access it from the sole caller. (Note that floating_axes already does the same direct access to the private _grid_info.)

Removing get_tick_iterator also removes the confusion with get_tick_iterators (plural), which is a common API in axisartist. Also note that the "minor" parameter of get_tick_iterator had a rather peculiar meaning (it only switched the labels off).

PR summary

PR checklist

@anntzer anntzer added this to the v3.9.0 milestone Nov 9, 2023
It's only ever used essentially to expose GridHelperCurveLinear._grid_info
to FixedAxisArtistHelper.get_tick_iterators; it seems better to access
it from the sole caller.  (Note that floating_axes already does the same
direct access to the private _grid_info.)

Removing get_tick_iterator also removes the confusion with
get_tick_iterators (plural), which is a common API in axisartist.
Also note that the "minor" parameter of get_tick_iterator had a rather
peculiar meaning (it only switched the labels off).
@oscargus oscargus merged commit f3abf3b into matplotlib:main Nov 10, 2023
40 checks passed
@anntzer anntzer deleted the gti branch November 10, 2023 07:27
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.

None yet

3 participants