Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

Dash layout image sizing issue

Hi - I’m trying to get my plot background image to be correctly sized. I have set the layout image size (sizex), position (x) and coordinate axis (xref) attributes correctly as far as i can tell. However the trace that I plot over the image has some points that are outside of the image itself. Here is a screengrab and the relevant code:

Code:

      layout=go.Layout(showlegend=False,
                                plot_bgcolor="white",
                                paper_bgcolor="white",
                                 xaxis_range=[0,120],
                                 yaxis_range=[0,80],
                                images=[dict(source= encoded_image,
                                             xref= "paper",
                                             yref= "paper",
                                             x=0,
                                             y=1,
                                             sizex=1,
                                             sizey=1,
                                             sizing="stretch",
                                             layer= "below")])