标签:com import alt color project lib range pre pytho
EG1:
import numpy as np import matplotlib.pyplot as plt r = np.arange(1,6,1) print(r) theta = [0 , np.pi/2 , np.pi , 3*np.pi/2 , 2 * np.pi , ] # len(theta) == len(r) print(theta) ax = plt.subplot(111, projection=‘polar‘) ax.plot(theta, r, color=‘r‘, linewidth=4) ax.grid(True) plt.show()
EG2:
标签:com import alt color project lib range pre pytho
原文地址:http://www.cnblogs.com/zsr0401/p/6435178.html