Python 代码
import numpy import matplotlib.pyplot as plt x=numpy.linspace(0,2*numpy.pi,32) fig = plt.figure() plt.plot(x, numpy.sin(x)) plt.show()
结果:
Python 代码
import numpy import matplotlib.pyplot as plt x=numpy.linspace(0,2*numpy.pi,32) fig = plt.figure() plt.plot(x, numpy.sin(x)) plt.show()
结果: