Skip to content

Commit 9bc721b

Browse files
committed
Fix tick label text width caused by formatting
By formatting the code to conform to PEP8, I forgot a backslash causing a misbehavior. This patch fixes that, as otherwise the whole dictionary would have been set to the variable instead of only one value it contains.
1 parent 536f272 commit 9bc721b

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)