Black Lives Matter. Please consider donating to Black Girls Code today.

Images not showing up in graph

I’m trying to make a page which shows an image of topography data, and a Scatter3D plot next to it.

This is an example of an image: https://earthexplorer.usgs.gov/browse/lidar/WA/2014/WA_GlacierPeak_2014/WA_GlacierPeak_2014_000117.jpg

I’ve tried following the steps here: https://plot.ly/python/images/, but my images don’t show up at all. It’s strange, because if I use the Vox link in the example, it works, but it’s not working with my own images.

Any idea what I might be doing wrong? Also, how might I reference an image on my local machine instead of using a URL?

1 Like

I think my issue may have been that a login is required to view the image. I’ve had success with a number of other images. Unfortunately, I haven’t figured out how to host an image from my local computer.

@nbelakovski I am having the same issue right now - the Vox example works but my images do not. I don’t have that same login thing that you do though, my images are accessible publicly.

My best guess as of right now is that the site the images are hosted on needs to have SSL (https). I am trying to now host my images on a secure site and see if that works. I’ll let you know if I figure anything out and please let me know if you learn how to fix it! I might also consider posting this on the Plotly GitHub Issues page.

I was having the same issue and the only way I was able to get it to work was by uploading my image to imgur. Just be sure to add ‘.png’ to the end of the url they give you.