def test_parkes_no_percentages(): fig, ax = plt.subplots(1, 1) parkes(1, reference, test, units="mmol", percentage=False, ax=ax) return fig
def test_parkes_no_mgdl(): fig, ax = plt.subplots(1, 1) _ref = [x * 18 for x in reference] _test = [x * 18 for x in test] parkes(1, _ref, _test, units="mgdl", percentage=False, ax=ax) return fig
def test_parkes_basic_title(): fig, ax = plt.subplots(1, 1) parkes(1, reference, test, units="mmol", title="Test", ax=ax) return fig
def test_parkes_basic_without_grid(): fig, ax = plt.subplots(1, 1) parkes(1, reference, test, units="mmol", grid=False, ax=ax) return fig
def test_parkes_basic_t2d(): fig, ax = plt.subplots(1, 1) parkes(2, reference, test, units="mmol", ax=ax) return fig
def test_parkes_squared(): fig, ax = plt.subplots(1, 1) parkes(1, reference, test, units="mmol", square=True, ax=ax) return fig
# -*- coding: utf-8 -*- from random import uniform import matplotlib.pyplot as plt from methcomp import parkes, parkeszones ref = [uniform(1, 30) for _ in range(300)] test = [uniform(1, 30) for _ in range(300)] zones = parkeszones(1, ref, test, units="mmol", numeric=True) print("Clarkes zones: {}".format(zones)) parkes(1, ref, test, units="mmol", color_points="auto", percentage=True) plt.show()
from methcomp import parkes, parkeszones 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 = parkeszones(1, ref, test, units='mmol', numeric=True) print('Clarkes zones: {}'.format(zones)) parkes(1, ref, test, units='mmol', color_points='auto', percentage=True) plt.show()
def test_parkes_basic_title(): fig, ax = plt.subplots(1, 1) parkes(1, reference, test, units='mmol', title='Test', ax=ax) return fig