作者:x08308926 | 来源:互联网 | 2023-08-07 17:58
Ihaveadatasetwithevents.Theseeventshaveastarttimeandaduration.Iwanttocreateascat
I have a dataset with events. These events have a start time and a duration. I want to create a scatter plot with the start time on the x-axis and the duration on the y-axis, but I want to alter the x-axis so that it displays the course of a week. That is, I want the x-axis to start on Monday 00:00 and run through Sunday 23:59.
我有一个包含事件的数据集。这些事件具有开始时间和持续时间。我想创建一个散点图,其中x轴为开始时间,y轴为持续时间,但我想改变x轴,以便显示一周的过程。也就是说,我希望x轴在星期一00:00开始,并在星期日23:59运行。
All the solutions I've found online show me how to perform group-by-and-sum over weekdays, which is not what I want to do. I want to plot all data points individually, I simply want to reduce the date-axis to weekday and time.
我在网上找到的所有解决方案都告诉我如何在工作日逐个进行分组,这不是我想要做的。我想单独绘制所有数据点,我只想将日期轴减少到工作日和时间。
Any suggestions?
有什么建议么?
1 个解决方案