Python如何绘制极坐标的c系数(第23行)图例?

我用如下代码绘图:

import xlrd
import numpy as np
import matplotlib.pyplot as plt

file = "E:\\学习文件\\植物地理学\\火炬树更新苗.xls"
data = xlrd.open_workbook_xls(file)
sheet1 = data.sheet_by_index(0)

distance = sheet1.col_values(0)
angle = sheet1.col_values(1)
height = sheet1.col_values(2)
area = sheet1.col_values(3)

distance = np.array(distance)*10
angle = np.array(angle) / 360 * 2 * np.pi
height = np.array(height)*10
area = np.array(area)*100

colors = height
plt.figure(figsize=(15, 6.5))
ax = plt.subplot(111, projection='polar')
ax.set_title("A picture of the new seedlings of the Rhus Typhina\nHeight(dm)   Area(dm²)")
ax.scatter(angle, distance, c=colors, s=area, cmap='jet')
ax.set_theta_direction(-1)
ax.set_theta_zero_location('N')
ax.set_rlabel_position(270)
plt.savefig("E:\\学习文件\\植物地理学\\火炬树更新苗分布图.png", dpi=300)

结果如下:

但是不知道怎么绘制c系数的条形图例(图中每个圆的颜色越红,表示数值越大),请有没有大佬解答一下?谢谢!

你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答

本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。

​​​​因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。