I have 7 storms with a time difference between IC (intracloud lightning) GC(lightning cloud ground) and I need to plot this time in a bar graph but I can't plot the minutes (y axis). Can someone help me? Some storms the difference is given by millisecond and I need to plot on x axis (storms) and y axis (time (minutes)).I'm trying to plot but the minutes are all zero
These are my data:
Storms (1 2 3 4 5 6 7)
time (00:00:00:131.73, 00:00:00:87.57, 00:03:23, 00:00:00:17.13, 00:08:23, 00:07:51, 00:40:41)
My code is like this:
import matplotlib.pyplot as plt
import matplotlib.dates as dates
from datetime import datetime, timedelta
x = ['1','2','3','4','5','6','7']
y = [00131.73, 087.57, 323, 1713, 823, 751, 4041]
fig, ax = plt.subplots(figsize=(8, 5))
plt.gca().yaxis.set_major_formatter(dates.DateFormatter('%M:%S.%f'))
plt.bar(x, y)
ax.set_title('a) Diferença de tempo entre o primeiro relâmpago IN e NS', fontsize=18)
ax.set_ylabel('Tempo (minutos)', fontsize=14)
ax.set_xlabel('Tempestades', fontsize=14)
plt.gcf().autofmt_xdate()
plt.show()
Current result:

