plots.py 文件源码

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

项目:nmmn 作者: rsnemmen 项目源码 文件源码
def image(Z,xnew,ynew,my_cmap=None,aspect='equal'):
    """
Creates pretty image. You need to specify:
    """
    imshow(log10(Z),extent=[xnew[0],xnew[-1],ynew[0],ynew[-1]], cmap=my_cmap)
    pylab.axes().set_aspect('equal')
    colorbar()
    circle2=Circle((0,0),1,color='k')
    gca().add_artist(circle2)
    savefig('tmp.png',transparent=True,dpi=150)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号