Fixed two small bugs in the analyzeTcpDump utility

This commit is contained in:
2025-01-17 10:47:58 +01:00
parent 83051e10c3
commit df7bc07259
2 changed files with 8 additions and 7 deletions

View File

@ -70,8 +70,8 @@ if __name__ == "__main__":
position_target.append(position_target[-1])
plt.plot(dates_target, position_target, "k--", label="Target position")
plt.plot(dates_all, position_all, "r", label="All responses")
plt.plot(dates_valid, position_valid, "b", label="Valid responses")
plt.plot(dates_all, position_all, "r-", label="All responses")
plt.plot(dates_valid, position_valid, "b-", label="Valid responses")
plt.xlabel("Time (ISO 8601)")
plt.ylabel("Axis position in degree")
plt.gca().xaxis.set_major_formatter(mdates.DateFormatter("%Y-%m-%dT%H:%M:%S"))