I have a scatter plot which represents a KPI. Below the KPI value I have a green rectangle, above a red rectangle created both with "fig.add_hrect()". I add text to indicate "KPI not satisfied" using:
fig.add_hrect(y0=sbf._KPI_CODERES_THRESHOLD, y1=residual_max,
annotation_text='KPI not satisfied', annotation_position='top',
fillcolor='red', opacity=0.05, line_width=0)
The text is in black and I cannot find a way to have the annotation text colored red.
Any help appreciated, Tx/ALain
