From ac19aa949822bd5de68a7a3b685da2c05809050d Mon Sep 17 00:00:00 2001 From: Yuexin Date: Tue, 27 Jul 2021 17:22:04 +0800 Subject: [PATCH] '0727' --- .../signal_delineat_byx.cpython-37.pyc | Bin 6487 -> 6781 bytes signal_delineat_byx.py | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/__pycache__/signal_delineat_byx.cpython-37.pyc b/__pycache__/signal_delineat_byx.cpython-37.pyc index 9cbc85bb748e6f342a698d599c8c6997718955ea..1e71893adc28003f58b3df0d3bee74bdd2dc995e 100644 GIT binary patch delta 792 zcmYjN&rj4q6rQ)X-Ll;+3oNq03d?UwG=bHqi5v_X4;~Euh$fpD>@uYm7Fwo*0x97{ zVk9J+j7MU24|?!sIA~%t#uGO^m}nZKM>WQSe*lRyWkveZuiy8+zBlj9r^4PTeIk`g zApZP8dv~e>&-GiHz8ym-kTJ}~DnK6Y_*wuH6*5ZLu z)u=Qp2Pl9b-i~m42H}oQgykTPl`W|TfGV)K&4yAl>$o#eaE||UjK5vu=syUQ`5GF=WiNC zEy_(%hnB6?lyA;^Wh?Kw&I0v|TGZg5N9>Y0JbF9|BTRXwXOXFrJ#DyUmxM{L>{20x z`k58uK`8moswKWN?gBMZ?14V1gc5e9Df_HnfNLz*IM$bpsh~p^VvvT+L8Q4#)}xt~ z8o$H#&gFCgdR?)8x9A@yp5RFiMaj49F>+RDpFM8sgQx6WQzf?~5;*~)%#ijg&WOZ0 zR&C45J)FK^o6S%1QLo5Z6!v~A&O#Ym{JKIm*^-AhY_a7lcx*D01)n*Y5!hvqGVj%> zyGA@V*V>u&c~w!eiFvY^;8-ZRl)CeTMh6aZ^CNrJx;q*z(jm?o;9#hSW@`}Hg9!)` pa=*Nv({Jp<(YNXU^VYYnw&mdW&g-^KXgr}N)Fw5~F{x^*{uh7I%L4!a delta 523 zcmexsa@~l}iIX z4SCb}fQmR4GB7fvFa$GbN=|0yd(EWDGkF$&z~m47&WtXTO#}=@xtKT@`4|NlnSfXX z1}Aq2JZGG`xj@i}Q9Bjr$Rc?lp~+s924eF7i71xh)O5ol3lKjONZevAE=eq!JYQ6d zRUOEkKlz2w1fgt@tPF?%nW4#2ls36bSdDSRT9sW~NyQEa)H zd6_8{lNX4JvMK{rY@a+`(Wl3M4c+Aif1VkrN~ecVbZn whzmDC1<1QG`J4CwVT9}8YQc6W098EO{8*x!kzb92i$jou9Z2$UaC7hh0LV9XWdHyG diff --git a/signal_delineat_byx.py b/signal_delineat_byx.py index d2a5a2d..05eff77 100644 --- a/signal_delineat_byx.py +++ b/signal_delineat_byx.py @@ -136,7 +136,7 @@ def _plot_delineate(x,Y,name,show_node,node_name,subplot=True): else: fig = go.Figure() for i in Y.keys(): - fig.add_trace(go.Scatter(x=x, y=Y[i], + fig.add_trace(go.Scatter(x=x, y=Y[i] * 4.88 / 1000, mode='lines', name=i)) fig.add_vline(x=show_node[0], line_dash="dash", annotation_text="Poff") @@ -144,6 +144,13 @@ def _plot_delineate(x,Y,name,show_node,node_name,subplot=True): fig.add_vline(x=show_node[2], line_dash="dash", annotation_text="QRSon") fig.add_vline(x=show_node[-1], line_dash="dash", annotation_text="QRSoff") fig.add_vline(x=show_node[3], line_dash="dash", annotation_text="Toff") + fig['layout']['xaxis']['showgrid'] = False + fig['layout']['yaxis']['showgrid'] = False + fig['layout']["yaxis_title"] = "voltage(mV)" + fig['layout']["xaxis_title"] = "sample points" + fig['layout']['paper_bgcolor'] = 'rgba(0,0,0,0)' + fig['layout']['plot_bgcolor'] = 'rgba(0,0,0,0)' + fig.update_layout(font=dict(size=24)) fig.show() def _delineate_Poff(seg,rpeak):