Exemple #1
0
def test_parkes_no_percentages():
    fig, ax = plt.subplots(1, 1)
    parkes(1, reference, test, units="mmol", percentage=False, ax=ax)
    return fig
Exemple #2
0
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
Exemple #3
0
def test_parkes_basic_title():
    fig, ax = plt.subplots(1, 1)
    parkes(1, reference, test, units="mmol", title="Test", ax=ax)
    return fig
Exemple #4
0
def test_parkes_basic_without_grid():
    fig, ax = plt.subplots(1, 1)
    parkes(1, reference, test, units="mmol", grid=False, ax=ax)
    return fig
Exemple #5
0
def test_parkes_basic_t2d():
    fig, ax = plt.subplots(1, 1)
    parkes(2, reference, test, units="mmol", ax=ax)
    return fig
Exemple #6
0
def test_parkes_squared():
    fig, ax = plt.subplots(1, 1)
    parkes(1, reference, test, units="mmol", square=True, ax=ax)
    return fig
Exemple #7
0
# -*- 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()
Exemple #8
0
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()
Exemple #9
0
def test_parkes_basic_title():
    fig, ax = plt.subplots(1, 1)
    parkes(1, reference, test, units='mmol', title='Test', ax=ax)
    return fig