添加自动全屏

This commit is contained in:
mmmistgun 2022-03-30 10:17:03 +08:00
parent b00414d949
commit 0c6a41e668
2 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@ -159,4 +159,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
!.gitignore
/Data/*
Data/*

View File

@ -63,7 +63,7 @@ class Quality_Relabel:
# 3 红色 阻塞型
# 4 红色 混合型
# 5 绿色 血氧饱和度下降
color_cycle = ["blue", "pink", "orange", "red", "red", "green"]
color_cycle = ["blue", "pink", "orange", "red", "grey", "green"]
assert len(color_cycle) == len(base_event) + 1, "基础事件数量与颜色数量不一致"
def __init__(self, sampNo: int, frequency: int = 100, bcg_frequency: int = 1000,
@ -320,14 +320,16 @@ class Quality_Relabel:
self.plt_channel(plt_=plt, SP=ecg_SP, EP=ecg_EP, channel="SpO2", event_code=[5])
plt.subplot(gs[5])
self.plt_channel(plt_=plt, SP=bcg_SP, EP=bcg_EP, channel="xin_xiao", event_show_under=True)
self.plt_channel(plt_=plt, SP=bcg_SP, EP=bcg_EP, channel="xin_xiao", event_show_under=False)
plt.subplot(gs[6])
self.plt_channel(plt_=plt, SP=bcg_SP, EP=bcg_EP, channel="xin_xiao_respire", event_show_under=True,
self.plt_channel(plt_=plt, SP=bcg_SP, EP=bcg_EP, channel="xin_xiao_respire", event_show_under=False,
ax_bottom=True,
title=f"心晓 sampNo:{self.sampNo} Epoch:{one_bcg_data['Epoch']} Duration:{one_bcg_data['Duration']}",
)
figManager = plt.get_current_fig_manager()
figManager.window.showMaximized()
plt.show()
def plt_channel(self, plt_, SP, EP, channel, event_code=[1, 2, 3, 4], event_show_under=False,