Hi experts;
I am trying to sketch a twoway rcap figure showing the start and end time of a few people's performances (horizontally);
Here are my xvar1 and xvar2 (showing the start and end points of rcap). My y-axis values are also the list of people performing during these time series.
Start_Time End_Time
08:30:00 16:00:00
12:00:00 13:30:00
12:00:00 13:00:00
13:30:00 15:15:00
13:30:00 15:29:59
14:00:00 15:00:00
14:00:00 15:00:00
14:30:00 15:29:59
14:45:00 15:00:00
15:00:00 16:59:59
15:00:00 16:00:00
15:30:00 16:14:59
16:00:00 16:45:00
16:30:00 17:30:00
17:00:00 18:00:00
17:00:00 18:00:00
17:00:00 18:00:00
17:30:00 18:29:59
17:30:00 19:30:00
18:00:00 20:15:00
18:30:00 19:30:00
19:00:00 21:00:00
19:30:00 21:00:00
20:00:00 21:45:00
20:30:00 21:40:00
21:00:00 22:30:00
21:00:00 21:29:59
22:00:00 22:59:59
23:00:00 01:59:59
23:30:00 01:59:59
My problem is that I cannot label the x (or t) axis (the horizontal axis) properly. I know to with the numbers (not hours) it is easy to create lables like below:
xscale (range(0 24))
xlabel(0 (2) 24) // showing 0 2 4 6 ...... 22 24 on your x-axis
But here with the time, I don't know how to do it like the numbers.
Here is what I want:
08:00:00 09:00:00 10:00:00 ....... 21:00:00 22:00:00 23:00:00 // or even better below
08:00 am 09:00 am 10:00 am ........ 08:00 pm 09:00 pm 10:00 pm
The format of Start_Time and End_Time above is %tcHH:MM:SS.
Can you please help me what I should do to label my figure x-axis like what I described?
Thanks
I am trying to sketch a twoway rcap figure showing the start and end time of a few people's performances (horizontally);
Here are my xvar1 and xvar2 (showing the start and end points of rcap). My y-axis values are also the list of people performing during these time series.
Start_Time End_Time
08:30:00 16:00:00
12:00:00 13:30:00
12:00:00 13:00:00
13:30:00 15:15:00
13:30:00 15:29:59
14:00:00 15:00:00
14:00:00 15:00:00
14:30:00 15:29:59
14:45:00 15:00:00
15:00:00 16:59:59
15:00:00 16:00:00
15:30:00 16:14:59
16:00:00 16:45:00
16:30:00 17:30:00
17:00:00 18:00:00
17:00:00 18:00:00
17:00:00 18:00:00
17:30:00 18:29:59
17:30:00 19:30:00
18:00:00 20:15:00
18:30:00 19:30:00
19:00:00 21:00:00
19:30:00 21:00:00
20:00:00 21:45:00
20:30:00 21:40:00
21:00:00 22:30:00
21:00:00 21:29:59
22:00:00 22:59:59
23:00:00 01:59:59
23:30:00 01:59:59
My problem is that I cannot label the x (or t) axis (the horizontal axis) properly. I know to with the numbers (not hours) it is easy to create lables like below:
xscale (range(0 24))
xlabel(0 (2) 24) // showing 0 2 4 6 ...... 22 24 on your x-axis
But here with the time, I don't know how to do it like the numbers.
Here is what I want:
08:00:00 09:00:00 10:00:00 ....... 21:00:00 22:00:00 23:00:00 // or even better below
08:00 am 09:00 am 10:00 am ........ 08:00 pm 09:00 pm 10:00 pm
The format of Start_Time and End_Time above is %tcHH:MM:SS.
Can you please help me what I should do to label my figure x-axis like what I described?
Thanks
Comment