Matplotlib - Performance and Large Data
Identify the error in this code using
PolyCollection:import matplotlib.pyplot as plt from matplotlib.collections import PolyCollection polys = [[(0, 0), (1, 0), (0.5, 1)]] pc = PolyCollection(polys, facecolors='green') fig, ax = plt.subplots() ax.add_collection(pc) plt.show()
