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:left>':<EOL><INDENT>if not len(bboxes):<EOL><INDENT>left = self.axes.bbox.xmin<EOL><DEDENT>else:<EOL><INDENT>bbox = mtransforms.Bbox.union(bboxes)<EOL>left = bbox.x0<EOL><DEDENT>self.label.set_position( (left-self.LABELPAD*self.figure.dpi/<NUM_LIT>, y))<EOL><DEDENT>else:<EOL><INDENT>if not len(bboxes2):<EOL><INDENT>right = self.axes.bbox.xmax<EOL><DEDENT>else:<EOL><INDENT>bbox = mtransforms.Bbox.union(bboxes2)<EOL>right = bbox.x1<EOL><DEDENT>self.label.set_position( (right+self.LABELPAD*self.figure.dpi/<NUM_LIT>, y))<EOL><DEDENT>
Update the label position based on the sequence of bounding
boxes of all the ticklabels