Ejemplo n.º 1
0
def test_insert_image_from_file():

    file = DEMO_PNG_FILE

    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(ax, file, scale=1)
    return fig
Ejemplo n.º 2
0
def test_insert_image_from_file_zoom_10x_expand():

    file = DEMO_PNG_FILE

    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(ax, file, scale=10, expand=True)
    return fig
Ejemplo n.º 3
0
def test_insert_image_from_url_zoom_10x_expand():

    url = DEMO_PNG_URL
    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(
        ax, url, scale=10, expand=True)
    return fig
Ejemplo n.º 4
0
def test_insert_image_from_url_shrink_half():

    url = DEMO_PNG_URL
    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(
        ax, url, scale=.5)
    return fig
Ejemplo n.º 5
0
def test_insert_image_from_file():

    file = DEMO_PNG_FILE

    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(
        ax, file, scale=1)
    return fig
Ejemplo n.º 6
0
def test_insert_image_from_file_zoom_10x_expand():

    file = DEMO_PNG_FILE

    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(
        ax, file, scale=10, expand=True)
    return fig
Ejemplo n.º 7
0
def test_insert_image_from_url_zoom_10x_expand():

    url = DEMO_PNG_URL
    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(ax, url, scale=10, expand=True)
    return fig
Ejemplo n.º 8
0
def test_insert_image_from_url_shrink_half():

    url = DEMO_PNG_URL
    fig, ax = plt.subplots(figsize=(9, 9))
    logo_ax = template.insert_image(ax, url, scale=.5)
    return fig