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] clarke(_ref, _test, units="mgdl", percentage=False, ax=ax) return fig
def test_clarke_squared(): fig, ax = plt.subplots(1, 1) clarke(reference, test, units="mmol", square=True, ax=ax) return fig
def test_clarke_no_percentages(): fig, ax = plt.subplots(1, 1) clarke(reference, test, units="mmol", percentage=False, ax=ax) return fig
def test_clarke_basic_without_grid(): fig, ax = plt.subplots(1, 1) clarke(reference, test, units="mmol", grid=False, ax=ax) return fig
def test_clarke_basic_title(): fig, ax = plt.subplots(1, 1) clarke(reference, test, units="mmol", title="Test", ax=ax) return fig
def test_clarke_basic_title(): fig, ax = plt.subplots(1, 1) clarke(reference, test, units='mmol', title='Test', ax=ax) return fig
from methcomp import clarke, clarkezones import matplotlib.pyplot as plt from random import uniform ref = [uniform(1, 30) for _ in range(300)] test = [uniform(1, 30) for _ in range(300)] zones = clarkezones(ref, test, units='mmol', numeric=True) print('Clarkes zones: {}'.format(zones)) clarke(ref, test, units='mmol', color_points='auto', percentage=True) plt.show()