I have a plot of digital signals. I am trying to shade in certain ‘stages’ of the process that I am recording. I have tried reading through the documentaion and haven’t found a straight forward answer to the following questions.
First and formost: Can you add hovertext to the fill area? When the cursor is over the ‘Green’ area, I want the cursor box to say “Stage 0”. Here is my code for trying to accomplish this:
trace_stage0=go.Scatter( x = [points['A'], points['B']], y = [1,1], mode = 'line', line = dict(width=0.2, color='rgb(0, 190, 0)'), fill = 'tozeroy', hoveron = "fills", hovertext = "Stage 0", showlegend = False) for i in range(Num_Channels): fig.append_trace(trace0[i],i+1,1) fig.append_trace(trace_stage0,i+1,1)
How can I get rid of the end points of each line? To me, they are distracting from the information I have trying to portray. I have tried ‘none’, but that apparently takes away my ability to control the color of the fill.
Is there a way to adjust the opaqueness of the fill? I would like to make it a little lighter. Thanks