draw sin Steps 导入包 生成X轴,Y轴的数据点 设置输出图大小,像素,前景色 指定线宽,线型,绘制曲线 设置坐标轴范围 显示图形. Code #!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import matplotlib import matplotlib.pyplot as plt # Data to be represented X = np.linspace(-np.pi,+np.pi,25…