我试图用 pygal 创建雷达图。但无法设置 ylim。默认情况下,它从零开始到最大值。我的数据是:
import pygal
case1 = [0.549194,34.251384,36.154543,41.913,-139.627415,-20.655737]
case2= [0.549194,31.947443,34.558203,40.005646,-157.190631,-70.267567]
case3=[0.549194,31.436088,41.019637,48.748227,-34.859838,243.311831]
radar_chart = pygal.Radar()
radar_chart.title = 'PBIAS'
radar_chart.x_labels = ['A','B', 'C', 'D', 'E', 'F']
radar_chart.add('Model1', case1)
radar_chart.add('Model2', case2)
radar_chart.add('Model3', case3)
它可能非常简单,但无法弄清楚如何做到这一点。