Skip to content

Commit e501cad

Browse files
committed
fix default rotation check on x-axis
1 parent 8ebd522 commit e501cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlib2tikz/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ 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 != 90:
49+
if xrotation != 0:
5050
self.axis_options.append(
5151
u"xlabel style={{rotate={}}}".format(xrotation - 90)
5252
)

0 commit comments

Comments
 (0)