I have a plot where one can select single data points for further investigation:
but as you can see the alpha value of the non-selected data points is quite low. Is it possible to increase the value of these points?
This is the code:
fig_general = px.scatter(df3
, x = "time"
, y = 'value'
, custom_data = ['Path']
, color = 'Device'
, symbol = 'variable'
, hover_name = "Path"
, opacity = 0.7
, template = 'plotly_dark'
, marginal_y = "rug"
)
fig_general.update_layout(
clickmode = 'event+select'
, xaxis = {'domain': [0.0, 0.85]}
, xaxis2 = {'domain': [0.86, 0.97]}
, transition_duration = 500
, autosize = True
, height = 700
, hovermode = 'closest'
)
fig_general.update_traces(marker = dict(
size = 14
, line = dict(
width = 2
, color = 'rgba(255, 255, 255, 0.3)'
)
),
hovertemplate="<br>".join([
"time: %{x}",
"value: %{y}",
])
)