Skip to content

Commit

Permalink
Merge pull request #378 from nschloe/typo
Browse files Browse the repository at this point in the history
fix missing f-string specifiers
  • Loading branch information
nschloe committed Jan 16, 2020
2 parents e0dd986 + ae1dd8e commit e0e698d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tikzplotlib/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ def __init__(self, data, obj): # noqa: C901

# get axes titles
xlabel = obj.get_xlabel()
xrotation = obj.xaxis.get_label().get_rotation()
if xlabel:
xlabel = _common_texification(xlabel)
self.axis_options.append(f"xlabel={{{xlabel}}}")
xrotation = obj.xaxis.get_label().get_rotation()
if xrotation != 0:
self.axis_options.append("xlabel style={{rotate={xrotation - 90)}}}")
self.axis_options.append(f"xlabel style={{rotate={xrotation - 90}}}")
ylabel = obj.get_ylabel()
yrotation = obj.yaxis.get_label().get_rotation()
if ylabel:
ylabel = _common_texification(ylabel)
self.axis_options.append(f"ylabel={{{ylabel}}}")
yrotation = obj.yaxis.get_label().get_rotation()
if yrotation != 90:
self.axis_options.append("ylabel style={{rotate={yrotation - 90}}}")
self.axis_options.append(f"ylabel style={{rotate={yrotation - 90}}}")

# Axes limits.
ff = data["float format"]
Expand Down

0 comments on commit e0e698d

Please sign in to comment.