Currently I am using Plotly express to plot a line chart with multiple data series. I can apply color, line dash etc to single data series without affecting others.
However, with markers, I cannot achive this. I need to set Marker to True which would apply markers to all of Data series and then change marker style or size for a single series. Is there a way I can apply a marker to a single data series without turning on markers for all of them?
fig = px.line(
data_frame=grouped_dff,
x='Time',
y='mean',
error_y = "std" if deviation_value in ["bar", "band"] else None,
error_y_mode=deviation_value,
color=colorby,
line_dash=traceby,
color_discrete_sequence=color_sequence,
template=template,
height=600,
markers = True if 2 in marker_input else False
)
renamed_series['settings'][method_new_name] = {
'color': color_picker_value,
'line_width': line_width,
'line_dash': line_style,
'marker_symbol': marker_style,
'marker_size': marker_size
}
# Apply the changes to the selected series
fig.data[selected_series_index].line.color = color_picker_value
fig.data[selected_series_index].line.width = line_width
fig.data[selected_series_index].line.dash = line_style
fig.data[selected_series_index].marker.symbol = marker_style
fig.data[selected_series_index].marker.size = marker_size