Hi-- I’m trying to make a graph with a shaded central area to show the accepted value limits.
However, as you can see in the image below, the shaded region is not extending all the way to the y-intercept. The lines for the upper and lower bounds are extended all the way, and I’m not sure why the shading isn’t following suit.
Here’s a snippet of my code where I define the fill rules for each trace.
> figure = {
> 'data': [
> go.Scatter(
> x=x1,
> y=y1,
> opacity=0.7,
> hoverinfo="text",
> textposition="top left",
> mode='markers',
> name='Assay Data',
> marker={
> 'size':9,
> 'line': {'width':0.5, 'color':'white'}
> }
> ),
> go.Scatter(
> x=x1,
> y=upper_limit,
> opacity=0.7,
> hoverinfo="text",
> fill='tonexty',
> textposition="top left",
> mode='lines',
> name='Upper Limit'
> ),
> go.Scatter(
> x=x1,
> y=lower_limit,
> opacity=0.7,
> fill='tonexty',
> hoverinfo="text",
> textposition="top left",
> mode='lines',
> name='Lower Limit'
> ),
> go.Scatter(
> x=x1,
> y=target,
> opacity=0.7,
> hoverinfo="text",
> textposition="top left",
> mode='lines',
> name='Target Value'
> )
> ],