You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add two annotations to a plot, one in top center, the other bottom center. The problem is, I'd like these to stay visible when I zoom in, so using a static y co-ordinate won't work.
I'm using a scatter plot, and the data I'm plotting is power factor in degrees, where a positive value indicates a capacitive load, and a negative angle represents an inductive load.
So I propose a feature request to add a parameter called valign (similar to align for the horizontal axis), which allows the text to stay in the same relative vertical location, regardless of scaling or zoom. I'd suggest values of: 'top', 'center', 'bottom', 'positive', 'negative'. The positive and negative can be used to have a label on a certain side of the y=0 line or similar.
Thanks
The text was updated successfully, but these errors were encountered:
doesn't look like #1551 to me, I'm fairly sure @etpinard 's first thought about setting xref and/or yref to 'paper' (with appropriate x / y values) is what you're looking for. If you want to get really precise with positioning, xanchor and yanchor can also help.
I'm going to close this, but @stoberblog feel free to reopen if we've missed what you're going for.
I'm trying to add two annotations to a plot, one in top center, the other bottom center. The problem is, I'd like these to stay visible when I zoom in, so using a static y co-ordinate won't work.
I'm using a scatter plot, and the data I'm plotting is power factor in degrees, where a positive value indicates a capacitive load, and a negative angle represents an inductive load.

So I propose a feature request to add a parameter called valign (similar to align for the horizontal axis), which allows the text to stay in the same relative vertical location, regardless of scaling or zoom. I'd suggest values of: 'top', 'center', 'bottom', 'positive', 'negative'. The positive and negative can be used to have a label on a certain side of the y=0 line or similar.
Thanks
The text was updated successfully, but these errors were encountered: