728x90
반응형
SMALL
Colorblind mode
# Now let's do colorblind protanopia friendly palettes
hp.config.colorblind = True
hp.config.colorblind_type = 'tritanopia'
for palette in palettes:
hp.config.color_style = palette
hp.plot_poincare(wd, m, title='color palette: %s' %palette)
import matplotlib.pyplot as plt
data, timer = hp.load_exampledata(1)
fs = hp.get_samplerate_mstimer(timer)
wd, m = hp.process(data, 100.0, clean_rr = True)
hp.config.colorblind = False
hp.config.color_style = 'default'
plt.figure(figsize=(12,6))
hp.plotter(wd, m)
hp.config.colorblind = False
for palette in palettes:
hp.config.color_style = palette
plt.figure(figsize=(12,4))
hp.plotter(wd, m, title='palette: %s' %palette)
hp.config.colorblind = True
hp.config.colorblind_type = 'Deuteranopia'
for palette in palettes:
hp.config.color_style = palette
plt.figure(figsize=(12,4))
hp.plotter(wd, m, title='palette: %s' %palette)
hp.config.colorblind = True
hp.config.colorblind_type = 'protanopia'
for palette in palettes:
hp.config.color_style = palette
plt.figure(figsize=(12,4))
hp.plotter(wd, m, title='palette: %s' %palette)
hp.config.colorblind = True
hp.config.colorblind_type = 'tritanopia'
for palette in palettes:
hp.config.color_style = palette
plt.figure(figsize=(12,4))
hp.plotter(wd, m, title='palette: %s' %palette
728x90
반응형
LIST
'Python Library > HeartPy' 카테고리의 다른 글
[HeartPy] Colorblind mode (1) (0) | 2022.08.25 |
---|---|
[HeartPy] Noisy ECG 신호 분석 (2) (0) | 2022.08.25 |
[HeartPy] Noisy ECG 신호 분석 (1) (0) | 2022.08.25 |
[HeartPy] 스마트 링 PPG 신호 분석 (0) | 2022.08.24 |
[HeartPy] 스마트 워치 PPG 신호 분석 (2) (0) | 2022.08.24 |