This tutorial explains how to add a legend to a scatterplot in Matplotlib ... scatter = plt.scatter(x, y, c=values, cmap=colors) #add legend ...
確定! 回上一頁