Skip to content

Commit e379cde

Browse files
committed
fix to pass ci lint (flake8)
(see #404 (comment))
1 parent edfd1c6 commit e379cde

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/test_cleanfigure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
2-
import pytest
32
from matplotlib import pyplot as plt
43

4+
import pytest
55
from tikzplotlib import clean_figure, get_tikz_code
66

77
RC_PARAMS = {"figure.figsize": [5, 5], "figure.dpi": 220, "pgf.rcfonts": False}

test/test_rotated_labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os
22
import tempfile
33

4-
import pytest
54
from matplotlib import pyplot as plt
65

6+
import pytest
77
import tikzplotlib
88

99

tikzplotlib/_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def get_legend_text(obj):
1313
if leg is None:
1414
return None
1515

16-
keys = [l.get_label() for l in leg.legendHandles if l is not None]
17-
values = [l.get_text() for l in leg.texts]
16+
keys = [h.get_label() for h in leg.legendHandles if h is not None]
17+
values = [t.get_text() for t in leg.texts]
1818

1919
label = obj.get_label()
2020
d = dict(zip(keys, values))

0 commit comments

Comments
 (0)