def scatter(data, legend=False, title=None, font_ch=None, find_path=None):
    '\n    绘制带数据标签的散点图\n    '
    import matplotlib.font_manager as fm
    if (font_ch is None):
        fontlist = ['calibri.ttf', 'simfang.ttf', 'simkai.ttf', 'simhei.ttf', 'simsun.ttc', 'msyh.ttf', 'msyh.ttc']
        myfont = ''
        if (not find_path):
            find_paths = ['C:\\Windows\\Fonts', '']
        for find_path in find_paths:
            for f in fontlist:
                if os.path.exists(os.path.join(find_path, f)):
                    myfont = os.path.join(find_path, f)
        if (len(myfont) == 0):
            print('没有找到合适的中文字体绘图，请检查.')
            myfont = None
        else:
            myfont = fm.FontProperties(fname=myfont)
    else:
        myfont = fm.FontProperties(fname=font_ch)
    (fig, ax) = plt.subplots()
    ax.xaxis.set_ticks_position('none')
    ax.yaxis.set_ticks_position('none')
    ax.axhline(y=0, linestyle='-', linewidth=1.2, alpha=0.6)
    ax.axvline(x=0, linestyle='-', linewidth=1.2, alpha=0.6)
    color = ['blue', 'red', 'green', 'dark']
    if (not isinstance(data, list)):
        data = [data]
    for (i, dd) in enumerate(data):
        ax.scatter(dd.iloc[:, 0], dd.iloc[:, 1], c=color[i], s=50, label=dd.columns[1])
        for (_, row) in dd.iterrows():
            ax.annotate(row.name, (row.iloc[0], row.iloc[1]), color=color[i], fontproperties=myfont, fontsize=10)
    ax.axis('equal')
    if legend:
        ax.legend(loc='best')
    if title:
        ax.set_title(title, fontproperties=myfont)
    return fig
绘制带数据标签的散点图
def scatter(data, legend=False, title=None, font_ch=None, find_path=None):
    '\n    \n    '
    import matplotlib.font_manager as fm
    if (font_ch is None):
        fontlist = ['calibri.ttf', 'simfang.ttf', 'simkai.ttf', 'simhei.ttf', 'simsun.ttc', 'msyh.ttf', 'msyh.ttc']
        myfont = 
        if (not find_path):
            find_paths = ['C:\\Windows\\Fonts', ]
        for find_path in find_paths:
            for f in fontlist:
                if os.path.exists(os.path.join(find_path, f)):
                    myfont = os.path.join(find_path, f)
        if (len(myfont) == 0):
            print('没有找到合适的中文字体绘图，请检查.')
            myfont = None
        else:
            myfont = fm.FontProperties(fname=myfont)
    else:
        myfont = fm.FontProperties(fname=font_ch)
    (fig, ax) = plt.subplots()
    ax.xaxis.set_ticks_position('none')
    ax.yaxis.set_ticks_position('none')
    ax.axhline(y=0, linestyle='-', linewidth=1.2, alpha=0.6)
    ax.axvline(x=0, linestyle='-', linewidth=1.2, alpha=0.6)
    color = ['blue', 'red', 'green', 'dark']
    if (not isinstance(data, list)):
        data = [data]
    for (i, dd) in enumerate(data):
        ax.scatter(dd.iloc[:, 0], dd.iloc[:, 1], c=color[i], s=50, label=dd.columns[1])
        for (_, row) in dd.iterrows():
            ax.annotate(row.name, (row.iloc[0], row.iloc[1]), color=color[i], fontproperties=myfont, fontsize=10)
    ax.axis('equal')
    if legend:
        ax.legend(loc='best')
    if title:
        ax.set_title(title, fontproperties=myfont)
    return fig