I'm trying to get a background image on my graph using plotly. I can't seem to get ANY image to display without using one of the images.plot.ly links. I tried web URLs and local images in the same folder as the project. This is what is showing up when I used the image URL from their tutorial:
https://plot.ly/python/images/
This is the only time I can get anything to show up. Any other link just produces nothing on the graph. Any tips? I have searched high and low for this.
layout = dict(title = 'Crime Cluster Statistics',
yaxis = dict(zeroline = False),
xaxis = dict(zeroline = False),
images= [dict(
source= "https://images.plot.ly/language-icons/api-home/python-logo.png",
xref= "x",
yref= "y",
x= 0,
y= 3,
sizex= 150000,
sizey= 150000,
sizing= "stretch")]
)
What I actually REALLY want is to fit an image of a US state on the background of the image, as the dots are supposed to represent events at a GPS coordinate for that state. But I can't seem to get any image to load onto the background besides this one.