now datalines with less than 1000 points plotted as markers+lines. beacuse they are highly-likely not continous but discrete values used for debug.

This commit is contained in:
2025-10-21 19:14:14 +03:00
parent fcde0a3d2b
commit b4abb2eea2

View File

@ -98,7 +98,11 @@ if __name__ == "__main__":
if key != "markers":
if (key.count("_N") + key.count("_hex")) == 0:
#print(key+"_hex :", data[key+"_hex"])
if (len(data[key]) > 1000):
chart.add_trace(go.Scattergl(x=data[key+"_N"], y=data[key], name=key, mode="lines", text=data[key+"_hex"]))
else:
chart.add_trace(go.Scattergl(x=data[key+"_N"], y=data[key], name=key, mode="markers+lines", text=data[key+"_hex"]))
# chart.add_trace(go.Scattergl(x=data[key+"_N"], y=data[key], name=key, mode="lines+markers", text=data[key+"_hex"]))
chart.show()