python matplotlib legend shows first entry of a list only,plt.show()