Example #1
0
def test_plot_fit():
    # second
    fig2, ax2 = pyplot.subplots()
    norm_dist = dist.normal(μ=5.4, σ=2.5)
    data = activity.random('normal', μ=5.4, σ=2.5, shape=37)
    ax2 = activity.plot(norm_dist, ax=ax2, line_opts=dict(label='Theoretical PDF'))
    ax2 = activity.plot('normal', data=data, ax=ax2, line_opts=dict(label='Fit PDF'))
    ax2.legend()
Example #2
0
def test_plot_pdf_fit():
    # second
    fig2, ax2 = pyplot.subplots()
    norm_dist = dist.normal(μ=5.4, σ=2.5)
    data = activity.random('normal', μ=5.4, σ=2.5, shape=37)
    ax2 = activity.plot(norm_dist,
                        ax=ax2,
                        line_opts=dict(label='Theoretical PDF'))
    ax2 = activity.plot('normal',
                        data=data,
                        ax=ax2,
                        line_opts=dict(label='Fit PDF'))
    ax2.legend()
    return fig2
Example #3
0
def test_plot_sf_basic():
    # first
    fig, ax1 = pyplot.subplots()
    norm_dist = dist.normal(μ=5.4, σ=2.5)
    ax1 = activity.plot(norm_dist, ax=ax1, which='sf')
    return fig
Example #4
0
def test_plot_sf_basic():
    # first
    fig, ax1 = pyplot.subplots()
    norm_dist = dist.normal(μ=5.4, σ=2.5)
    ax1 = activity.plot(norm_dist, ax=ax1, which='sf')
    return fig
Example #5
0
def test_plot_basic():
    # first
    fig, ax1 = pyplot.subplots()
    norm_dist = dist.normal(μ=5.4, σ=2.5)
    ax1 = activity.plot(norm_dist, ax=ax1)