def _update_label_position(self, bboxes, bboxes2):
if not self._autolabelpos: return<EOL>x,y = self.label.get_position()<EOL>if self.label_position == '<STR_LIT>':<EOL><INDENT>if not len(bboxes):<EOL><INDENT>bottom = self.axes.bbox.ymin<EOL><DEDENT>else:<EOL><INDENT>bbox = mtransforms.Bbox.union(bboxes)<EOL>bottom = bbox.y0<EOL><DEDENT>self.label.set_position( (x, bottom - self.LABELPAD*self.figure.dpi / <NUM_LIT>))<EOL><DEDENT>else:<EOL><INDENT>if not len(bboxes2):<EOL><INDENT>top = self.axes.bbox.ymax<EOL><DEDENT>else:<EOL><INDENT>bbox = mtransforms.Bbox.union(bboxes2)<EOL>top = bbox.y1<EOL><DEDENT>self.label.set_position( (x, top+self.LABELPAD*self.figure.dpi / <NUM_LIT>))<EOL><DEDENT>
Update the label position based on the sequence of bounding
boxes of all the ticklabels