I am running through a problem on how to produce the attached image in matplotlib. I have n X-Axis (Users' most active minute) values in x1 and corresponding n Y-axis (Count) values. I can do the bar chart using these two axes. However, I have another variable Date which I want in the upper X-Axis (x2) exactly like the attached image. The important point is both x1 and x2 is of same length and as you can see the datatype of x1 is int and x2's datatype is datetime(/string).
x2 is NOT derived from x1 and the position of both the ticks and labels of x1 and x2 would be same. In brief, you can say X-Axis having two different labels with same Y-Axis. Any help would be greatly appreciated. Also, I would like to have the Y-Axis Count in the middle of each bar.
P.S: It would be nice if generic answer is provided as I have more than 5 datapoints unlike the attached image. So, I need a solution for n number of x1, n number of x2, and n number of Y values. Thank you!

