Python Showing Legend Under Matplotlib Plot With Varying Number Of

Python Showing Legend Under Matplotlib Plot With Varying Number Of