def test_seg_basic_title(): fig, ax = plt.subplots(1, 1) seg(reference, test, units="mmol", title="Test", ax=ax) return fig
def test_seg_no_percentages(): fig, ax = plt.subplots(1, 1) seg(reference, test, units="mmol", percentage=False, ax=ax) return fig
from methcomp import seg, segscores import matplotlib.pyplot as plt from random import uniform ref = [uniform(2, 18) for _ in range(300)] test = [uniform(2, 18) for _ in range(300)] zones = segscores(ref, test, units='mmol') print('SEG scores: {}'.format(zones)) seg(ref, test, units='mmol', percentage=False) plt.show()
def test_clarke_no_mgdl(): fig, ax = plt.subplots(1, 1) _ref = [x * 18 for x in reference] _test = [x * 18 for x in test] seg(_ref, _test, units='mgdl', percentage=False, ax=ax) return fig
def test_seg_basic_title(): fig, ax = plt.subplots(1, 1) seg(reference, test, units='mmol', title='Test', ax=ax) return fig
def test_clarke_basic(): fig, ax = plt.subplots(1, 1) seg(reference, test, units='mmol', ax=ax) return fig
# -*- coding: utf-8 -*- from random import uniform import matplotlib.pyplot as plt from methcomp import seg, segscores ref = [uniform(2, 18) for _ in range(300)] test = [uniform(2, 18) for _ in range(300)] zones = segscores(ref, test, units="mmol") print("SEG scores: {}".format(zones)) seg(ref, test, units="mmol", percentage=False) plt.show()