Skip to content

Commit 77c9d88

Browse files
committed
some flake8 fixes
1 parent 426c1ac commit 77c9d88

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

matplotlib2tikz/__about__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
__author__ = u"Nico Schlömer"
44
__email__ = "[email protected]"
55
__copyright__ = u"Copyright (c) 2010-2018, {} <{}>".format(__author__, __email__)
6-
__credits__ = []
76
__license__ = "License :: OSI Approved :: MIT License"
87
__version__ = "0.6.17"
9-
__maintainer__ = u"Nico Schlömer"
108
__status__ = "Development Status :: 5 - Production/Stable"

matplotlib2tikz/__init__.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,24 @@
88
__author__,
99
__email__,
1010
__copyright__,
11-
__credits__,
1211
__license__,
1312
__version__,
14-
__maintainer__,
1513
__status__,
1614
)
1715

1816
from matplotlib2tikz.save import get_tikz_code, save
1917

18+
__all__ = [
19+
"__author__",
20+
"__email__",
21+
"__copyright__",
22+
"__license__",
23+
"__version__",
24+
"__status__",
25+
"get_tikz_code",
26+
"save",
27+
]
28+
2029
try:
2130
import pipdate
2231
except ImportError:

test/test_legend_best_location.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ def plot():
4646
axes[7].legend((l,), ("UC",), loc=0)
4747

4848
# Legend best location is "center"
49-
l = axes[8].plot(
49+
loc = axes[8].plot(
5050
t[:10],
5151
2 * np.cos(10 * t[:10]),
5252
t[-10:],
5353
2 * np.cos(10 * t[-10:]),
5454
linewidth=0.5,
5555
)
5656
axes[8].plot(t, -2 * np.ones_like(t), t, 2 * np.ones_like(t))
57-
axes[8].legend((l,), ("C",), loc=0)
57+
axes[8].legend((loc,), ("C",), loc=0)
5858

5959
return fig
6060

0 commit comments

Comments
 (0)