Skip to content

Commit 8ebd522

Browse files
committed
reformat axes.py additions to comply with black
1 parent 0f54f79 commit 8ebd522

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

matplotlib2tikz/axes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ def __init__(self, data, obj):
4747
xlabel = mpl_backend_pgf.common_texification(xlabel)
4848
self.axis_options.append(u"xlabel={{{}}}".format(xlabel))
4949
if xrotation != 90:
50-
self.axis_options.append(u"xlabel style={{rotate={}}}".format(xrotation - 90))
50+
self.axis_options.append(
51+
u"xlabel style={{rotate={}}}".format(xrotation - 90)
52+
)
5153
ylabel = obj.get_ylabel()
5254
yrotation = obj.yaxis.get_label().get_rotation()
5355
if ylabel:
5456
ylabel = mpl_backend_pgf.common_texification(ylabel)
5557
self.axis_options.append(u"ylabel={{{}}}".format(ylabel))
5658
if yrotation != 90:
57-
self.axis_options.append(u"ylabel style={{rotate={}}}".format(yrotation - 90))
59+
self.axis_options.append(
60+
u"ylabel style={{rotate={}}}".format(yrotation - 90)
61+
)
5862

5963
# Axes limits.
6064
# Sort the limits so make sure that the smaller of the two is actually *min.

0 commit comments

Comments
 (0)