So i'm trying to plot a (125 x 1000) grid with specified values. I'm using matplotlib with pcolormesh. This is how my code looks, enzyme array just symbolic.
enzyme = np.array([125 x 1000])
plt.pcolormesh(enzyme, cmap='Reds')
plt.colorbar()
plt.show()
The x-axis is my spatial resolution and my y-axis is time. My x-axis just runs from 0 to 125 and y-axis runs from 0 to 1000. But my actual problem is in hours, so I want the y-axis to show like 0hours -> 24hours per 2hours step. Something similar for the x-axis. So the grid index is not the right scale and number for my plot. How do I fix this.
I tried already including like
pcolormesh(x, y, enzyme)
with x and y a 1D array, but these have to match the length of my enzyme grid and i have way too many datapoints to put on the x- and y- axis.