From b4abb2eea2f89f184684ea6aff50dd4d469267f3 Mon Sep 17 00:00:00 2001 From: Theodor Chikin Date: Tue, 21 Oct 2025 19:14:14 +0300 Subject: [PATCH] now datalines with less than 1000 points plotted as markers+lines. beacuse they are highly-likely not continous but discrete values used for debug. --- plotter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plotter.py b/plotter.py index db8c2c4..f3cc5cd 100755 --- a/plotter.py +++ b/plotter.py @@ -98,7 +98,11 @@ if __name__ == "__main__": if key != "markers": if (key.count("_N") + key.count("_hex")) == 0: #print(key+"_hex :", data[key+"_hex"]) - chart.add_trace(go.Scattergl(x=data[key+"_N"], y=data[key], name=key, mode="lines", text=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()