px.scatter error bars of same color as the marker
I am making an error bar plot using px.scatter. I want to set each error bar to the same color as the marker. Below is the code showing how I am making the scatter plot. As can be seen from the code, I have a continuous scale and the markers are colored based on the column 'size' from my dataframe. I have looked quite a lot in the plotly documentation but I am unable to find a way to set the error bars of the same color as the marker. Is there a fix for this? Does plotly support different colored error bars for continuous data? Any help or suggestions would be appreciated.
I have also attached a link to the screenshot of the plot (the plot is zoomed in). As can be seen from the plot, the markers have colors based on the continuous scale whereas the all the lines have the same color.
df = pd.read_csv(options['file'], sep = ',')
size = df['size'].to_list()
fig = px.scatter(df,
x = "start",
y = "rank",
error_x = "duration",
render_mode = 'auto',
facet_row = 'api',
category_orders ={"api": ["MPIIO", "POSIX"]})
fig.update_traces(
marker = dict(
color= size,
colorscale = "portland",
colorbar=dict(
title = "Request Size <br>(Bytes)",
thickness=20
),
showscale=True
),
error_x = dict(
width = 0,
symmetric=False,
),
)