To annotate data points in Matplotlib, use the annotate(~) method: import matplotlib.pyplot as plt. x = [1,2,3]. y = [4,5,6]. plt.scatter([1,2,3], [4,5,6]).
確定! 回上一頁