Untitled
Never
import matplotlib.pyplot as plt import pandas as pd from math import pi # Set data df = pd.DataFrame({ 'group': ['A', 'B', 'C', 'D'], 'var1': [38, 1.5, 30, 4], 'var2': [29, 10, 9, 34], 'var3': [8, 39, 23, 24], 'var4': [7, 31, 33, 14], 'var5': [28, 15, 32, 14] }) # number of variable (Service providers) categories = list(df)[1:] N = len(categories) # We are going to plot the first line of the data frame. # But we need to repeat the first value to close the circular graph: values = df.loc[0].drop('group').values.flatten().tolist() values += [0] #values print(values) # What will be the angle of each axis in the plot? (we divide the plot / number of variable) angles = [n / float(N) * 2 * pi for n in range(N)] angles += angles[:1] # Initialise the spider plot ax = plt.subplot(111, polar=True) # Draw one axe per variable + add labels labels yet plt.xticks(angles[:-1], categories, color='grey', size=8) # Draw ylabels ax.set_rlabel_position(0) plt.yticks([10, 20, 30], ["10", "20", "30"], color="grey", size=7) plt.ylim(0, 40) # Plot data ax.plot(angles, values, linewidth=1, linestyle='solid') plt.show()
Raw Text
-
Untitled
6 min ago
-
ukrainian ped0mom
27 min ago
-
🔥NEW UPDATED CP FOLDERS🔥//01/05/24
28 min ago
-
720GB CeePee Folders
28 min ago
-
Adult Telegram Channels
45 min ago
-
720GB CeePee
1 hour ago
-
Little boys tricked to fuc.k
1 hour ago
-
Pedowoman boy
1 hour ago
-
df rey rwywrtw
1 hour ago
-
fortnite-free-vbucks-codes-2024-get-fast-redeem-v-bucks-emotes-vtqgf
1 hour ago