I am creating a plot with a large amount of data and adding a legend to it:
import matplotlib.pyplot as plt import numpy as np plt.plot(np.arange(100000), np