Created
February 17, 2022 06:30
-
-
Save databyjp/95eab5ee7ef7127aeb941c6dcd32dfc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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