radar plot

This commit is contained in:
Benjamin Bertrand 2016-11-22 14:39:17 +03:00
parent 312de64750
commit f8899cfedd

View File

@ -61,7 +61,7 @@ def radar_graph(labels = [], values = [], optimum = []):
N = len(labels)
theta = _radar_factory(N)
max_val = max(max(optimum), max(values))
fig = plt.figure()
fig = plt.figure(figsize=(3,3))
ax = fig.add_subplot(1, 1, 1, projection='radar')
ax.plot(theta, values, color='k')
ax.plot(theta, optimum, color='r')