예제 #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
예제 #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
예제 #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')
예제 #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
예제 #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')
예제 #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