How to set cell width in heatmap plots

Hi

I am trying to create a plot like below. I was thinking of using heatmap plot with x axis as time, y axis as vehicle number and z (color) representing if the cell is depot or not. For this I would need each cell to be of constant width, which I am striggling to achieve.

This might be a very naive question but I am really struggling to recreate this plot. Please let me know how could I do this? Thanks in advance

Hi @kanwarnain welcome to the forum! I think a bar chart would be more adapted to reproduce this plot, you’ll probably need to set the base for each bar as in this example.

thanks @Emmanuelle! This is a good idea. Not sure why I did not think about it. Much appreciated!