I got this file in the next format:
00:01:28,102,103,103 20-03-202400:02:16,111,110,11000:02:33,108,109,10900:02:49,107,108,10824 hours read....23:58:54,111,112,11223:59:11,109,110,11023:59:47,115,116,11700:00:04,115,116,116 21-03-202400:00:20,121,122,12000:00:36,124,125,12524 hours read...23:59:02,115,115,11623:59:19,114,114,11423:59:51,113,114,11500:00:07,113,114,115 22-03-202400:00:24,116,117,11500:00:45,115,115,11624 hours read23:59:08,101,101,10023:59:32,103,103,10223:59:48,102,102,102Next day
Simple reads but as you can see i added the day(Date)its starts when day changes at 00:00:00.......when i tried to plot this reading with pandas the xtick values, in this case, the hours labes gets clipped one above other and so on, also it slowly loads
what i did was this when im doing the Plot:
#C0 and C1 plt.figure(figsize=(15,9)) plt.xlabel('Day') plt.ylabel('Voltage') #3 plots at the same figure bacause of the three values from the read plt.plot(C0Temp, C1Temp, label = "Voltage", color = LineColorTemp1Text) plt.plot(C2Temp, C3Temp, label="Max", color = 'r') plt.plot(C4Temp, C5Temp, label="Min", color = 'g') plt.legend() #This right here should detect days when ploting and #probably read all month if possible locator = mdates.AutoDateLocator(minticks=12, maxticks=24) plt.gcf().axes[0].xaxis.set_major_locator(locator) plt.xticks(rotation = 45)
Nothing happens, any help would be great!Thanks in advance