display value an index represents on x axis
===

I have a code which makes a plot of a 2 dimensional array. Along the x axis is just the index of my array, but I would like the x axis to display the value that index represents.

relevant code:

    plt.imshow(data, aspect="auto")
    plt.colorbar()
    plt.show()

Where "data" is a 1000 by 200 array. So at the moment, the plot is created correctly, and the x axis shows the index number of array (0-199).

But this index also corresponds to a date in another list that I have (date[]) of length 200. I want the date corresponding to the index to show on the x axis, and not the index itself.

I hope this is clear. Could someone please point me in the right direction?