def __call__(self, x, pos=None):
    if (rcParams['text.usetex'] and (not rcParams['text.latex.unicode'])):
        return ('$%0.0f^\\circ$' % ((x / np.pi) * 180.0))
    else:
        return (u'%0.0f°' % ((x / np.pi) * 180.0))
def __call__(self, x, pos=None):
    if (rcParams['text.usetex'] and (not rcParams['text.latex.unicode'])):
        return ('$%0.0f^\\circ$' % ((x / np.pi) * 180.0))
    else:
        return (u'%0.0f°' % ((x / np.pi) * 180.0))