-
Beta Was this translation helpful? Give feedback.
Answered by
dbuezas
May 17, 2022
Replies: 1 comment 11 replies
-
|
Oh, that's an interesting idea! Examplelayout:
shapes:
- type: rect
xref: paper # means that x0 and x1 are relative to the screen, not the value of the axis themselves.
yref: 'y' # means that y0 and y1 are relative to the first yaxis (if you have multiple yaxes, this can be y2, y3, etc)
x0: 0 # 0 = start (see xref)
x1: 1 # 1 = end (see xref)
y0: 0 # zero of the actual yaxis
y1: 50 # in whatever units the axis shows
fillcolor: green
opacity: 0.2
line:
width: 0
- type: rect
xref: paper
yref: 'y'
x0: 0
x1: 1
y0: 50
y1: 100
fillcolor: yellow
opacity: 0.2
line:
width: 0
- type: rect
xref: paper
yref: 'y'
x0: 0
x1: 1
y0: 100
y1: 200
fillcolor: red
opacity: 0.2
line:
width: 0More here
-- |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
dbuezas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Oh, that's an interesting idea!
For that you need to use shapes.
Example