Hi there,
I’m trying to place the sensors in a image.
As you can see it doesn’t appear right!
I did format my graph to be 550 x 175 and I got the coordinates of my points. For that I need the image to occupy 100% of graph area. SO I defined the follow layout:
image_filename = 'images/Terr1_Planta.PNG'
imagem_terr1 = base64.b64encode(open(image_filename, 'rb').read())
layout = go.Layout(
height=580,
hovermode="closest",
xaxis=dict(range=[0,550], zeroline=False, visible= False),
yaxis=dict(range=[0,175], zeroline=False, visible= False),
title='Planta Terraceria 1',
images= [dict(
source='data:image/png;base64,{}'.format(imagem_terr1.decode()),
xref="paper", yref="paper",
x=0, y=0,
sizex=1, sizey=1,
xanchor="left",
yanchor="bottom",
#sizing="stretch",
layer="below")],
showlegend=True)
I thought that defining the sizex and size y as 1 that it would use the 100% of the Area… but it doesn’t.
Other question I have is there any way that I zoom in the graph and the image zooms as well?
Thanks you so much!