import matplotlib.pyplot as plt
plt.figure(1, figsize=(8,8))
ax = plt.subplot(111)
def drawNode(text,...('B', 0.5, 0.97, 0.3, 0.8, 0)
drawNode('C', 0.5, 0.97, 0.7, 0.8, 1)
drawNode('D', 0.3, 0.8, 0.2, 0.6,...0)
drawNode('E', 0.3, 0.8, 0.4, 0.6, 1)
drawNode('F', 0.7, 0.8, 0.6, 0.6, 0)
drawNode('G', 0.7, 0.8,...0.8, 0.6, 1)
drawNode('H', 0.2, 0.6, 0.1, 0.4, 0)
drawNode('I', 0.4, 0.6, 0.3, 0.4, 0)
drawNode('J',...0.4, 0.6, 0.5, 0.4, 1)
drawNode('K', 0.6, 0.6, 0.7, 0.4, 1)
#显示图形
plt.show()
运行效果图:
?