Exemple #1
0
def test_decor_plot():
    """
    Tests mpl image of decor
    """
    r = {'colour': 'grey', 'grainsize': 'vf-f', 'lithology': 'sand'}

    rock = Component(r)

    d = {'color': '#86F0B6', 'component': rock, 'width': 3}

    decor = Decor(d)
    print(decor.component.summary())
    fig = decor.plot(fmt="{lithology} {colour} {grainsize}")
    return fig
Exemple #2
0
def test_decor_plot():
    """
    Tests mpl image of decor.
    """
    r = {'colour': 'grey', 'grainsize': 'vf-f', 'lithology': 'sand'}

    rock = Component(r)

    d = {'color': '#86F0B6', 'component': rock, 'width': 3}

    decor = Decor(d)

    fig = plt.figure(figsize=(4, 1))
    fig = decor.plot(fmt="{lithology!t} {colour} {grainsize}", fig=fig)
    return fig
Exemple #3
0
def test_decor_plot():
    """
    Tests mpl image of decor
    """
    r = {"colour": "grey", "grainsize": "vf-f", "lithology": "sand"}

    rock = Component(r)

    d = {"color": "#86F0B6", "component": rock, "width": 3}

    decor = Decor(d)

    fig = plt.figure(figsize=(4, 1))
    fig = decor.plot(fmt="{lithology!t} {colour} {grainsize}", fig=fig)
    return fig
Exemple #4
0
def test_decor_plot():
    """
    Tests mpl image of decor
    """
    r = {'colour': 'grey',
         'grainsize': 'vf-f',
         'lithology': 'sand'}

    rock = Component(r)

    d = {'color': '#86F0B6',
         'component': rock,
         'width': 3}

    decor = Decor(d)
    print(decor.component.summary())
    fig = decor.plot(fmt="{lithology} {colour} {grainsize}")
    return fig
Exemple #5
0
def test_decor_plot():
    """
    Tests mpl image of decor.
    """
    r = {'colour': 'grey',
         'grainsize': 'vf-f',
         'lithology': 'sand'}

    rock = Component(r)

    d = {'color': '#86F0B6',
         'component': rock,
         'width': 3}

    decor = Decor(d)

    fig = plt.figure(figsize=(4, 1))
    fig = decor.plot(fmt="{lithology!t} {colour} {grainsize}", fig=fig)
    return fig