8000 Revert "Make have_units_and_converter private" · matplotlib/matplotlib@324c90a · GitHub
[go: up one dir, main page]

Skip to content

Commit 324c90a

Browse files
committed
Revert "Make have_units_and_converter private"
This reverts commit a9cff25.
1 parent 9f9777c commit 324c90a

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
@@ -2547,7 +2547,7 @@ def _process_unit_info(self, datasets=None, kwargs=None, *, convert=True):
25472547
# Update from data if axis is already set but no unit is set yet.
25482548
if (axis is not None and
25492549
data is not None and not
2550-
axis._have_units_and_converter()):
2550+
axis.have_units_and_converter()):
25512551
axis.update_units(data)
25522552
for axis_name, axis in axis_map.items():
25532553
# Return if no axis is set.

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ def have_units(self):
17331733
"""
17341734
return self.converter is not None or self.units is not None
17351735

1736-
def _have_units_and_converter(self):
1736+
def have_units_and_converter(self):
17371737
"""
17381738
Return `True` if units and a converter have been set.
17391739
"""

0 commit comments

Comments
 (0)
0