File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
- python-version : ["3.11"]
18
+ python-version : ["3.11", "3.13" ]
19
19
20
20
steps :
21
21
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -238,7 +238,12 @@ def labelLines(
238
238
xvals [i ] = new_xv # type: ignore
239
239
240
240
# Convert float values back to datetime in case of datetime axis
241
- if isinstance (ax .xaxis .converter , DateConverter ):
241
+ mpl_version = tuple (int (_ ) for _ in plt .matplotlib .__version__ .split ("." ))
242
+ if mpl_version < (3 , 10 , 0 ):
243
+ converter = ax .xaxis .converter
244
+ else :
245
+ converter = ax .xaxis .get_converter ()
246
+ if isinstance (converter , DateConverter ):
242
247
xvals = [
243
248
num2date (x ).replace (tzinfo = ax .xaxis .get_units ())
244
249
for x in xvals # type: ignore
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ dependencies = [
31
31
32
32
[project .optional-dependencies ]
33
33
test = [
34
- " matplotlib==3.9.3 " ,
34
+ " matplotlib==3.10.0 " ,
35
35
" pytest-cov==6.0.0" ,
36
36
" pytest-mpl==0.17.0" ,
37
- " pytest==8.3.3 " ,
37
+ " pytest==8.3.4 " ,
38
38
]
39
39
40
40
[project .urls ]
You can’t perform that action at this time.
0 commit comments