Matplotlib库进行绘图:折线图、函数图、散点图、饼图、柱状图等

一、画出正弦曲线与余弦曲线,并进行相关绘图设置。python 效果以下图所示:编程 import matplotlib.pyplot as plt import numpy as np x = np.linspace(0,6,50) y1 = [np.sin(i) for i in x] y2 = [np.cos(i) for i in x] plt.figure(num='Sin and Cos
相关文章
相关标签/搜索