åºæ¬ã¯ https://matplotlib.org/examples/api/radar_chart.html ã§è¯ãã®ã§ããã
æå
ã®ç°å¢ã
$ python --version
Python 3.6.5 :: Anaconda, Inc.
$ pip list
matplotlib 2.2.2
ã§ã¯ãããããå¿ èŠã ã£ãã®ã§ã¡ã¢ã
--- radar_chart.py.org
+++ radar_chart.py
@@ -39,6 +39,7 @@
theta = np.linspace(0, 2*np.pi, num_vars, endpoint=False)
# rotate theta such that the first axis is at the top
theta += np.pi/2
+ theta = np.where(theta > np.pi * 2, theta - np.pi*2, theta)
def draw_poly_patch(self):
verts = unit_poly_verts(theta)
æèšåãã®å Žå
theta = np.linspace(np.pi/2, np.pi/2-2*np.pi, num_vars, endpoint=False)
theta = np.where(theta < 0, theta + np.pi*2, theta)