@@ -124,26 +124,11 @@ def __init__(self, data, obj):
124124 if colorbar :
125125 self ._colorbar (colorbar , data )
126126
127- # actually print the thing
128127 if self .is_subplot :
129128 self .content .append ("\n \\ nextgroupplot" )
130129 else :
131130 self .content .append ("\\ begin{axis}" )
132131
133- # # anchors
134- # if hasattr(obj, '_matplotlib2tikz_anchors'):
135- # try:
136- # for coord, anchor_name in obj._matplotlib2tikz_anchors:
137- # self.content.append(
138- # '\\node (%s) at (axis cs:%e,%e) {};\n' %
139- # (anchor_name, coord[0], coord[1])
140- # )
141- # except:
142- # print('Axes attribute _matplotlib2tikz_anchors wrongly set:'
143- # 'Expected a list of ((x,y), anchor_name), got \'%s\''
144- # % str(obj._matplotlib2tikz_anchors)
145- # )
146-
147132 return
148133
149134 def get_begin_code (self ):
@@ -466,6 +451,8 @@ def _get_label_rotation_and_horizontal_alignment(obj, data, x_or_y):
466451 )
467452 )
468453
454+ # Ignore horizontal alignment if no '{x,y} tick label text width' has
455+ # been passed in the 'extra' parameter
469456 if tick_label_text_width :
470457 if tick_labels_horizontal_alignment_same_value :
471458 values .append ("align={}" .format (tick_labels_horizontal_alignment [0 ]))
@@ -482,14 +469,6 @@ def _get_label_rotation_and_horizontal_alignment(obj, data, x_or_y):
482469 )
483470 )
484471 values .append ("text width={}" .format (tick_label_text_width ))
485- else :
486- print (
487- (
488- "Horizontal alignment will be ignored as no '{} tick "
489- "label text width' has been passed in the 'extra' "
490- "parameter"
491- ).format (x_or_y )
492- )
493472
494473 label_style = (
495474 "every {} tick label/.style = {{\n "
0 commit comments