Error bars of the same color as their marker when using a colorscale?

I don’t find a way to get the error bars the same colors as their marker when the trace is using a colorscale. All error bars of a trace seem to be restricted to the same color, which I can set with error_y.color. I would really like error_y.color to accept a list of colors just like marker.color does or a setting that tells plotly to use the same color on the error bar as on the marker itself.

Is there any way to get the error bars of a trace to use the same color as their marker, (without splitting the trace to just one entry per trace)?

Simple example:

1 Like

Hi @HenrikNorman

I think for now, there is no built in way to set error bar color same as the marker.
The solution maybe what you want to avoid, by creating muti traces with a different marker per trace.

Many thanks, Saratoga. This is probably a good enough workaround for now.

1 Like