make_images.py 文件源码

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

项目:bezier 作者: dhermes 项目源码 文件源码
def unit_triangle():
    """Image for :class:`.surface.Surface` docstring."""
    if NO_IMAGES:
        return

    nodes = np.asfortranarray([
        [0.0, 0.0],
        [1.0, 0.0],
        [0.0, 1.0],
    ])
    surface = bezier.Surface(nodes, degree=1)

    ax = surface.plot(256)

    ax.axis('scaled')
    _plot_helpers.add_plot_boundary(ax)

    save_image(ax.figure, 'unit_triangle.png')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号