def get_text(self, lev, fmt):
if cbook.is_string_like(lev):<EOL><INDENT>return lev<EOL><DEDENT>else:<EOL><INDENT>if isinstance(fmt,dict):<EOL><INDENT>return fmt[lev]<EOL><DEDENT>else:<EOL><INDENT>return fmt%lev<EOL><DEDENT><DEDENT>
get the text of the label