本文实例为大家分享了python3使用matplotlib绘制散点图,并标注图例,轴,供大家参考,具体内容如下
代码
from matplotlib import pyplot as plt
from matplotlib import font_manager
# 使得中文可以显示出来
my_font = font_manager.FontProperties(fname=/usr/share/fonts/truetype/arphic/ukai.ttc)
y_3 = [11, 15, 17, 16, 11, 12, 11, 12, 6, 6, 7, 8, 9, 12, 15, 14,