Skip to content

Commit 0f54f79

Browse files
committed
do not output style line if no rotation specified
1 parent d5f2c7b commit 0f54f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matplotlib2tikz/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ def __init__(self, data, obj):
4646
if xlabel:
4747
xlabel = mpl_backend_pgf.common_texification(xlabel)
4848
self.axis_options.append(u"xlabel={{{}}}".format(xlabel))
49-
if xrotation != 0.0:
49+
if xrotation != 90:
5050
self.axis_options.append(u"xlabel style={{rotate={}}}".format(xrotation - 90))
5151
ylabel = obj.get_ylabel()
5252
yrotation = obj.yaxis.get_label().get_rotation()
5353
if ylabel:
5454
ylabel = mpl_backend_pgf.common_texification(ylabel)
5555
self.axis_options.append(u"ylabel={{{}}}".format(ylabel))
56-
if yrotation != 0.0:
56+
if yrotation != 90:
5757
self.axis_options.append(u"ylabel style={{rotate={}}}".format(yrotation - 90))
5858

5959
# Axes limits.

0 commit comments

Comments
 (0)