Example #1
0
def test_distribplot_annotate1():
    '''Check iif text exists on the plot when annotate=True.'''
    case = ut.laminator(['400-200-800'])[0]
    plot = la.output_._distribplot(case.LMs, annotate=True)

    actual = upt.has_annotations(plot.texts)
    nt.assert_true(actual)

    plt.close()
Example #2
0
def test_distribplot_annotate2():
    '''Check ift text exists; return False when annotate=False'''
    case = ut.laminator(['400-200-800'])[0]
    plot = la.output_._distribplot(case.LMs, annotate=False)

    actual = upt.has_annotations(plot.texts)
    nt.assert_false(actual)

    plt.close()