Esempio n. 1
0
def test_plot_sf_xlog():
    # first
    fig, ax1 = pyplot.subplots()
    loc_dist = dist.lognormal(μ=1.25, σ=0.75)
    ax1 = activity.plot(loc_dist, ax=ax1, xscale='log', which='sf')
    ax1.legend()
    return fig
Esempio n. 2
0
def test_plot_sf_xlog():
    # first
    fig, ax1 = pyplot.subplots()
    loc_dist = dist.lognormal(μ=1.25, σ=0.75)
    ax1 = activity.plot(loc_dist, ax=ax1, xscale='log', which='sf')
    ax1.legend()
    return fig
Esempio n. 3
0
def test_plot_bad_attribute():
    with pytest.raises(AttributeError):
        loc_dist = dist.lognormal(μ=1.25, σ=0.75)
        activity.plot(loc_dist, xscale='log', which='JUNK')
Esempio n. 4
0
def test_plot_pdf_xlog():
    # first
    fig, ax1 = pyplot.subplots()
    loc_dist = dist.lognormal(μ=1.25, σ=0.75)
    ax1 = activity.plot(loc_dist, ax=ax1, xscale='log')
    return fig
Esempio n. 5
0
def test_plot_bad_attribute():
    with pytest.raises(AttributeError):
        loc_dist = dist.lognormal(μ=1.25, σ=0.75)
        activity.plot(loc_dist, xscale='log', which='JUNK')
Esempio n. 6
0
def test_plot_pdf_xlog():
    # first
    fig, ax1 = pyplot.subplots()
    loc_dist = dist.lognormal(μ=1.25, σ=0.75)
    ax1 = activity.plot(loc_dist, ax=ax1, xscale='log')
    return fig