pyatoa.tests.test_mgmt_plot

Test plotting capabilities by comparing baseline images for example data

Module Contents

Functions

mgmt()

Fully realized manager object which will be used to make plots

reset_matplotlib()

Reset matplotlib to a common default. Copied from Pyflex

images_are_identical(created_img)

Modified from Pyflex which was partially copied from ObsPy.

test_waveform_plot(tmpdir, mgmt)

Test that plotting waveforms, windows, adjsrc etc. by themselves works

test_map_plot(tmpdir, mgmt)

Test that map plotting with moment tensor works

test_combined_plot(tmpdir, mgmt)

Test that a combined gridspec waveform + map figure works

Attributes

IMGDIR

pyatoa.tests.test_mgmt_plot.IMGDIR = './test_data/baseline_images'[source]
pyatoa.tests.test_mgmt_plot.mgmt()[source]

Fully realized manager object which will be used to make plots

pyatoa.tests.test_mgmt_plot.reset_matplotlib()[source]

Reset matplotlib to a common default. Copied from Pyflex

pyatoa.tests.test_mgmt_plot.images_are_identical(created_img)[source]

Modified from Pyflex which was partially copied from ObsPy. Used to check images for equality.

pyatoa.tests.test_mgmt_plot.test_waveform_plot(tmpdir, mgmt)[source]

Test that plotting waveforms, windows, adjsrc etc. by themselves works

pyatoa.tests.test_mgmt_plot.test_map_plot(tmpdir, mgmt)[source]

Test that map plotting with moment tensor works

pyatoa.tests.test_mgmt_plot.test_combined_plot(tmpdir, mgmt)[source]

Test that a combined gridspec waveform + map figure works