好吧,我发现以下内容要快得多:
from matplotlib import pyplot as pltfrom matplotlib.collections import LineCollectionlc = LineCollection(points[edges])fig = plt.figure()plt.gca().add_collection(lc)plt.xlim(points[:,0].min(), points[:,0].max())plt.ylim(points[:,1].min(), points[:,1].max())plt.plot(points[:,0], points[:,1], 'ro')fig.savefig('full_figure.png')还有可能做得更快吗?



