def get_text_heights(self, renderer):
bbox, bbox2 = self.get_ticklabel_extents(renderer)<EOL>padPixels = self.majorTicks[<NUM_LIT:0>].get_pad_pixels()<EOL>above = <NUM_LIT:0.0><EOL>if bbox2.height:<EOL><INDENT>above += bbox2.height + padPixels<EOL><DEDENT>below = <NUM_LIT:0.0><EOL>if bbox.height:<EOL><INDENT>below += bbox.height + padPixels<EOL><DEDENT>if self.get_label_position() == '<STR_LIT>':<EOL><INDENT>above += self.label.get_window_extent(renderer).height + padPixels<EOL><DEDENT>else:<EOL><INDENT>below += self.label.get_window_extent(renderer).height + padPixels<EOL><DEDENT>return above, below<EOL>
Returns the amount of space one should reserve for text
above and below the axes.  Returns a tuple (above, below)