start to implement texenv filter for pictures

This commit is contained in:
Benjamin Bertrand
2016-11-25 08:00:02 +03:00
parent efcc647b3a
commit 0c33f5322c
3 changed files with 38 additions and 19 deletions

View File

@@ -61,12 +61,15 @@ def radar_graph(labels = [], values = [], optimum = []):
N = len(labels)
theta = _radar_factory(N)
max_val = max(max(optimum), max(values))
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')
ax.set_varlabels(labels)
plt.show()
return fig, ax
#plt.show()
#plt.savefig("radar.png", dpi=100)