matplotlib常用函数
plt.axvspan(highlight_start, highlight_end, color='yellow', alpha=0.3) ##数据时间段高亮显示
plt.axvspan(lower, upper, color='yellow', alpha=0.3)
plt.axvline(lower, color='red', linestyle='--') ##分界线用红色虚线表示
plt.axvline(upper, color='red', linestyle='--')
plt.text(lower, -500, f'{lower}', color='red', ha='center', va='top',rotation=90,fontsize=10) ##标记分界线名字
plt.text(upper, -500, f'{upper}', color='red', ha='center', va='top',rotation=90,fontsize=10)
浙公网安备 33010602011771号