Skip to content

Commit a9cff25

Browse files
committed
Make have_units_and_converter private
1 parent 30922ea commit a9cff25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines 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

Lines 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)