8000 MNT: Turn Axes._axis_map into a static dict instead of a property by timhoffm · Pull Request #29424 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MNT: Turn Axes._axis_map into a static dict instead of a property #29424

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

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

timhoffm
Copy link
Member
@timhoffm timhoffm commented Jan 7, 2025

The axes (self.xaxis, self.yaxis) as well as their names (self._axis_names) cannot be changed at run time. Therefore, we don't have to recompute the _axis_map on every access. Instead, we can do this once after _init_axis() and store the resulting dict.

@timhoffm timhoffm added this to the v3.11.0 milestone Jan 7, 2025
The axes (self.xaxis, self.yaxis) cannot be changed at run time. Therefore, we don't have to recompute the _axis_map on every access. Instead, we can do this once after `_init_axis()` and store the resulting dict.
@greglucas greglucas merged commit 419b661 into matplotlib:main Jan 7, 2025
39 checks passed
@timhoffm timhoffm deleted the mnt-axis-map branch January 7, 2025 17:38
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.

3 participants
0