I need a radar chart to visualize some key figures.
So I took the code from here and changed it a little bit, so it would fit my needs.
Here is the code that I use for my radar chart:
%matplotlib inline
import matplotlib.pyplot as plt
from math import pi
f = plt.figure(figsize=(10,5))
categories=['consistency', 'correctness', 'completeness']
N = len(categories)
values=[59,80,60]
values += values[:1]
values
angles = [n / float(N) * 2 * pi for n in range(N)]
angles += angles[:1]
ax = f.add_subplot(111, polar=True)
plt.xticks(angles[:-1], categories, color='grey', size=8)
ax.set_rlabel_position(180)
plt.yticks([20,40,60,80,100], ["20","40","60","80","100"], color="grey", size=10)
plt.ylim(0,100)
ax.plot(angles, values, 'o-', linewidth=1, linestyle='solid')
ax.fill(angles, values, 'b', alpha=0.1)
One thing I noticed, that the labels are way to close to the radar chart as you can see here, because they are longer than the labels that are used in examples of radar charts.