-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add explicit converter setting to Axis #28970
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
axis_map = axes._axis_map | ||
axis_limits = { | ||
name: tuple(convert_limits( | ||
getattr(axes, f'get_{name}lim')(), axis.converter | ||
getattr(axes, f'get_{name}lim')(), axis.get_converter() | ||
)) | ||
for name, axis in axis_map.items() | ||
} | ||
|
@@ -66,7 +66,7 @@ | |
|
||
# Save the converter and unit data | ||
axis_converter = { | ||
name: axis.converter | ||
name: axis.get_converter() | ||
for name, axis in axis_map.items() | ||
} | ||
axis_units = { | ||
|
@@ -209,7 +209,7 @@ | |
axis.set_label_text(axis_label) | ||
|
||
# Restore the unit data | ||
axis.converter = axis_converter[name] | ||
axis._set_converter(axis_converter[name]) | ||
axis.set_units(axis_units[name]) | ||
Comment on lines
+212
to
213
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The choice to use the private setter was a defensive one as the public It is not clear to me on analysis how the unit information is or was These lines were last touched in #24141, though that really only generalized |
||
|
||
# Set / Curves | ||
|
Uh oh!
There was an error while loading. Please reload this page.