Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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