- edited description
currently, patches are added with a separate call to ax.add_artist() for each Patch (Rectangle or Polygon) we add
we are wondering if this would be any faster if we instead collect a list of references to all the Patches we want to draw, create a PatchCollection from this list, and then add that PatchCollection to the ax with a single call to ax.add_collection()
patches = []
triangle = mpl.patches.Polygon(np.array([[x_1, y_1], [x_2, y_2], [x_3, y_3]])), True)
patches.append(triangle)
...
p = mpl.collections.PatchCollection(patches)
ax.add_collection(p)