Post AWDOGimLa9nRpBmbI0 by lost_soul@calckey.pl
 (DIR) More posts by lost_soul@calckey.pl
 (DIR) Post #AWDOGimLa9nRpBmbI0 by lost_soul@calckey.pl
       2023-05-31T12:06:56.777Z
       
       0 likes, 0 repeats
       
       Nie wiem, czy ktoś będzie tego kiedyś potrzebować, ale umieszczam tu funkcję w pythonie do rysowania wykresów radarowych:import numpy as npimport matplotlib.pyplot as pltdef radar_charts(categories, value, title, name_file):    categories = [*categories, categories[0]]    plt.figure(figsize=(10, 10))    plt.subplot(polar=True)    for x in value.keys():        value[x] = [*value[x], value[x][0]]        if x == list(value.keys())[0]:            label_loc = np.linspace(start=0, stop=2 * np.pi, num=len(value[x]))        plt.plot(label_loc, value[x], label=x)                plt.title(title, size=20, y=1.05)    lines, labels = plt.thetagrids(np.degrees(label_loc), labels=categories)    if len(list(value.keys())) > 1:        plt.legend()    plt.savefig(name_file + ".eps",format = "eps")