Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save databyjp/95eab5ee7ef7127aeb941c6dcd32dfc9 to your computer and use it in GitHub Desktop.

Select an option

Save databyjp/95eab5ee7ef7127aeb941c6dcd32dfc9 to your computer and use it in GitHub Desktop.
fig.add_shape(type="rect",
x0=rtg_min, y0=rtg_mid, x1=rtg_mid, y1=rtg_max,
fillcolor="LightSeaGreen",
opacity=0.25,
line_width=0,
layer="below"
)
fig.add_shape(type="rect",
x0=rtg_mid, y0=rtg_min, x1=rtg_max, y1=rtg_mid,
fillcolor="LightSteelBlue",
opacity=0.25,
line_width=0,
layer="below"
)
fig.add_annotation(x=rtg_min + 3, y=rtg_max - 3,
text="Very good".upper(),
xanchor="left",
showarrow=False)
fig.add_annotation(x=rtg_max - 3, y=rtg_min + 3,
text="Very bad".upper(),
xanchor="right",
showarrow=False)
fig.add_annotation(x=rtg_min + 3, y=rtg_min + 3,
text="Bad O, Good D".upper(),
xanchor="left",
showarrow=False)
fig.add_annotation(x=rtg_max - 3, y=rtg_max - 3,
text="Good O, Bad D".upper(),
xanchor="right",
showarrow=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment