title: Scaling the axes of an image plot
body: <p>I have an image that I upload to my program. Then I plot it using plotly's image trace. What I need to be able to do is to set the range of these axes, without affecting the image being plotted.</p>
  <p><a href="https://i.stack.imgur.com/mr4Va.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mr4Va.png" alt="plot" /></a></p>
  <p>Above is what my plot looks like. If I simply divide the image array by a constant, I change the colors of my image. When I set a range, it makes the image black which is peculiar to me.</p>
  <p>How would I have both the x and y axis go from [0:25.4]?</p>
  <pre><code>uploaded = files.upload()
  filename = next(iter(uploaded))
  figure = go.FigureWidget(data=[], layout=go.Layout())
  figure.add_trace(go.Image(z=uploaded))
  figure.show()
  
  #more-or-less this should be a minimal reproducible example. 
  #This is in google colab, hence the weird file upload method.
  </code></pre>
  <hr />