'Return the width of the label in points.'

def get_label_width(self, lev, fmt, fsize):

    if (not isinstance(lev, six.string_types)):
        lev = self.get_text(lev, fmt)
    (lev, ismath) = text.Text.is_math_text(lev)
    if (ismath == u'TeX'):
        if (not hasattr(self, u'_TeX_manager')):
            self._TeX_manager = texmanager.TexManager()
        (lw, _, _) = self._TeX_manager.get_text_width_height_descent(lev, fsize)
    elif ismath:
        if (not hasattr(self, u'_mathtext_parser')):
            self._mathtext_parser = mathtext.MathTextParser(u'bitmap')
        (img, _) = self._mathtext_parser.parse(lev, dpi=72, prop=self.labelFontProps)
        lw = img.get_width()
    else:
        lw = ((len(lev) * fsize) * 0.6)
    return lw
