bulb_sine.py 文件源码

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

项目:poke_semantics 作者: apilaskowski 项目源码 文件源码
def imscatter(x, y, image, ax=None, zoom=1):
    if ax is None:
        ax = plt.gca()
    try:
        image = plt.imread(image)
    except TypeError:
        # Likely already an array...
        pass
    im = OffsetImage(image, zoom=zoom)
    x, y = np.atleast_1d(x, y)
    artists = []
    for x0, y0 in zip(x, y):
        ab = AnnotationBbox(im, (x0, y0), xycoords='data', frameon=False)
        artists.append(ax.add_artist(ab))
    ax.update_datalim(np.column_stack([x, y]))
    ax.autoscale()
    return artists
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号