def fontprop(ax, name, size=12):

    assert available_fonts in name, "Font must be one of {0}.".\
            format(available_fonts)

    import matplotlib.font_manager as fm

    fname = op.join(datadir, name)
    prop = fm.FontProperties(fname=fname, size=size)

    logging.debug("Set font to `{0}` (`{1}`).".format(name, prop.get_file()))
    for text in ax.texts:
        text.set_fontproperties(prop)

    return prop
dataset/ETHPy150Open tanghaibao/jcvi/graphics/base.py/fontprop/swapped operands of `in`