tsne.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:CNN_Visualization 作者: albioTQ 项目源码 文件源码
def imagesPlot(images, positions, zoom=0.25):
    fig, ax = plt.subplots()

    for num in range(len(images)):

        x = positions[num, 0]
        y = positions[num, 1]
        image = images[num]

        im = OffsetImage(image, zoom=zoom)
        x, y = np.atleast_1d(x, y)

        for x0, y0 in zip(x, y):
            ab = AnnotationBbox(im, (x0, y0), xycoords='data', frameon=False)
            ax.add_artist(ab)

        ax.update_datalim(np.column_stack([x, y]))
        ax.autoscale()

    plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号