Closed Anujkumarp closed 3 months ago
I suppose this is for the "barcode" plot??
Something like this should do the trick
ax = fp.plot_barcode()
# replace time labels with frames
frames = [int(label.get_text()) for label in ax.xaxis.get_ticklabels()]
times = [int(u.trajectory[frame].time / 1000) for frame in frames]
ax.set_xticklabels(times)
ax.set_xlabel("Time (ns)")
ax
How to convert number of frames to time and plot it FI vs Time.