python生成折线图怎么对特定点做颜色_python库matplotlib绘制折线图,散点图以及设置样式...
一:首先导入matplotlib库:File->settingProjectInterpreter点击右边的+号搜索到之后点击左下角installpackage安装。二:折线图:#折线图importmatplotlib.pyplotaspltx_valuse=[1,2,3,4,5]y_squares=[1,4,9,16,25]#表示(0,1)(1,4)……的点plt.plot(x_valuse,y