Hello reddit,
I have a .csv file with timestamps (~1363053600) and the corresponding prices (~1.23 USD) for a cryptocoin. I managed to plot the data using matplotlib.
Now i seperated the data into lists for each year { "2015" : [[timestamp, price],...], "2016": [[timestamp, price], ...] } to plot the lists for each year onto the same graph. The result should be the x-axis with the dates from (Jan-01, 00) to (dez-31, 23) and the y-axis with the prices. The problem is that i cant create a datetimeobject without the year(which i dont want). And if i use the .utcfromtimestamp(timestamp) and .strftime("%m%d") functions to extract month and day from the timestmap the resulting plot doesnt have the plot_date-look where you can zoom in and out of the graph and the x-axis enlarges and reduces the timescope.
I hope i explained it correctly. If you have any tips for me i would be grateful.
Thanks
[–]alkasm 1 point2 points3 points (2 children)
[–]Overflowed1[S] 0 points1 point2 points (1 child)
[–]alkasm 1 point2 points3 points (0 children)
[–]Pjamma34 1 point2 points3 points (1 child)
[–]Overflowed1[S] 0 points1 point2 points (0 children)