I fear the solution to my question is simple, but I cannot find another tutorial which gives an explanation for how to plot a line graph the way I am trying to. I am attempting to plot the fluctuation of energy prices over 24 hours as a 2-D line graph. My data includes several prices per hour, but each hour has a different number of data points. The data points only correspond to an hour number, like this:
1 0.12
1 0.14
1 0.17
2 0.11
2 0.13
2 0.14
2 0.15
3 0.12
4 0.16
etc.
I want to be able to plot this data such that the prices for each hour are evenly distributed over the hour, but the line graph is a single continuous plot with the horizontal axis being hours 0 thru 24.
Any help or tips are appreciated. Thanks.
Bookmarks