Skip to content

Commit 79c6f5c

Browse files
committed
remove annoying message
1 parent c430e40 commit 79c6f5c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

matplotlib2tikz/axes.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -453,17 +453,11 @@ def _get_label_rotation_and_horizontal_alignment(obj, data, axes_obj):
453453
if any(tick_labels_rotation) != 0:
454454
values.append("rotate={}".format(tick_labels_rotation[0]))
455455

456+
# Horizontal alignment will be ignored if no 'x/y tick label text width' has
457+
# been passed in the 'extra' parameter
456458
if tick_label_text_width:
457459
values.append("align={}".format(tick_labels_horizontal_alignment[0]))
458460
values.append("text width={}".format(tick_label_text_width))
459-
else:
460-
print(
461-
(
462-
"Horizontal alignment will be ignored as no '{} tick "
463-
"label text width' has been passed in the 'extra' "
464-
"parameter"
465-
).format(axes_obj)
466-
)
467461

468462
if values:
469463
label_style = "{}ticklabel style = {{{}}}".format(

0 commit comments

Comments
 (0)