def radar_plot():
 labels = np.array(['A', 'B', 'C', 'D', 'E', 'F'])
 data = np.array([38, 43, 90, 67, 89, 73])
 theta = np.linspace(0, (2 * np.pi), len(data), endpoint=False)
 data = np.concatenate((data, [data[0]]))
 theta = np.concatenate((theta, [theta[0]]))
 plt.subplot(111, polar=True)
 plt.thetagrids((theta * (180 / np.pi)), labels=labels)
 plt.rgrids(np.arange(20, 101, 20), labels=np.arange(20, 101, 20), angle=0)
 plt.ylim(0, 100)
 plt.plot(theta, data, 'bo-', linewidth=2)
 plt.fill(theta, data, color='red', alpha=0.25)
 plt.show()
 return

def radar_plot ( ) : labels = np . array ( [ 'A' , 'B' , 'C' , 'D' , 'E' , 'F' ] ) data = np . array ( [ 38 , 43 , 90 , 67 , 89 , 73 ] ) theta = np . linspace ( 0 , ( 2 * np . pi ) , len ( data ) , endpoint = False ) data = np . concatenate ( ( data , [ data [ 0 ] ] ) ) theta = np . concatenate ( ( theta , [ theta [ 0 ] ] ) ) plt . subplot ( 111 , polar = True ) plt . thetagrids ( ( theta * ( 180 / np . pi ) ) , labels = labels ) plt . rgrids ( np . arange ( 20 , 101 , 20 ) , labels = np . arange ( 20 , 101 , 20 ) , angle = 0 ) plt . ylim ( 0 , 100 ) plt . plot ( theta , data , 'bo-' , linewidth = 2 ) plt . fill ( theta , data , color = 'red' , alpha = 0.25 ) plt . show ( ) return
radar plot .