I created a plot with this code
from plotly.subplots import make_subplots import plotly.graph_objects as go fig2 = make_subplots(rows=1, cols=1) fig2.add_trace( go.Scatter(x=[1,2,3], y=[1,2,1], mode='markers', error_y=dict(type='percent', array=[500,10,50], visible=True)), row=1, col=1) fig2.show()
I expected the error bars to be 500%, 10% and 50% of the given values. Instead they are all 10% of the values. In fact it doesn’t matter what numbers I put in
array - I always get error bars of 10%. The behaviour is as intended when instead of
array one uses
value, but then one can use only a float, not an array of numbers. One can omit this problem by using instead of
type='data' and changing accordingly the error
array to absolute values, not relative ones. Anyway, I guess this is some kind of a bug? Or am I missing something or doing something wrong?