Skip to content

Commit 446a0d1

Browse files
committed
Remove warning from mpl 3.10
1 parent e775eac commit 446a0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labellines/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def labelLines(
238238
xvals[i] = new_xv # type: ignore
239239

240240
# Convert float values back to datetime in case of datetime axis
241-
if isinstance(ax.xaxis.converter, DateConverter):
241+
if isinstance(ax.xaxis.get_converter(), DateConverter):
242242
xvals = [
243243
num2date(x).replace(tzinfo=ax.xaxis.get_units())
244244
for x in xvals # type: ignore

0 commit comments

Comments
 (0)