Advertisement

Python画流程图

阅读量:

欢迎大神尝试

复制代码
    import matplotlib.pyplot as plt
    import numpy as np
    import matplotlib.patches as mpatches
    plt.subplots_adjust(left=0.00, bottom=0.0, right=1.00, top=0.95, wspace=0.0, hspace=0.00)
    
    
    def hexagon_with_text(ax,x,y,text,size,**kwargs):
    xy=np.array([x,y])
    hexagon = mpatches.RegularPolygon(xy, 6, radius=size,facecolor='#5472bb',edgecolor='#3f597c', orientation=np.pi / 2)
    ax.add_patch(hexagon)
    ax.text(xy[0],xy[1],text,fontsize=size*14,color='white',va='center',ha='center')
    
    def circle_with_text(ax,x,y,text,size,**kwargs):
    xy=np.

全部评论 (0)

还没有任何评论哟~