Пример #1
0
def test_histogram(data):
    """
    Tests plotting a histogram using a sequence of integers from a table.
    """
    fig = Figure()
    fig.histogram(
        data=data,
        projection="X10c/10c",
        region=[0, 9, 0, 6],
        series=1,
        frame="a",
        fill="green",
    )
    return fig
Пример #2
0
def test_histogram(table):
    """
    Tests plotting a histogram using a list of integers.
    """
    fig = Figure()
    fig.histogram(
        table=table,
        projection="X10c/10c",
        region=[0, 9, 0, 6],
        series=1,
        frame="a",
        fill="green",
    )
    return fig