Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9cff25

Browse filesBrowse files
committed
Make have_units_and_converter private
1 parent 30922ea commit a9cff25
Copy full SHA for a9cff25

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2582,7 +2582,7 @@ def _process_unit_info(self, datasets=None, kwargs=None, *, convert=True):
25822582
# Update from data if axis is already set but no unit is set yet.
25832583
if (axis is not None and
25842584
data is not None and not
2585-
axis.have_units_and_converter()):
2585+
axis._have_units_and_converter()):
25862586
axis.update_units(data)
25872587
for axis_name, axis in axis_map.items():
25882588
# Return if no axis is set.

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ def have_units(self):
16571657
"""
16581658
return self.converter is not None or self.units is not None
16591659

1660-
def have_units_and_converter(self):
1660+
def _have_units_and_converter(self):
16611661
"""
16621662
Return `True` if units and a converter have been set.
16631663
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.