Skip to content

Commit 736ef34

Browse files
authored
Merge pull request #162 from mlq/fix/tick-label-text-width
Fix tick label text width caused by formatting
2 parents 536f272 + 9bc721b commit 736ef34

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
@@ -387,8 +387,8 @@ def __get_label_rotation_and_horizontal_alignment(self, obj, data, axes):
387387
tick_label_text_width = None
388388
tick_label_text_width_identifier = "%s tick label text width" % axes
389389
if tick_label_text_width_identifier in data['extra axis options']:
390-
tick_label_text_width = data['extra axis options [base]']
391-
[tick_label_text_width_identifier]
390+
tick_label_text_width = data['extra axis options [base]'] \
391+
[tick_label_text_width_identifier]
392392
del data['extra axis options'][tick_label_text_width_identifier]
393393

394394
label_style = ""

0 commit comments

Comments
 (0)