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