def test_plot_rupture_wire3d(): ff = os.path.join(shakedir, "tests/data/eventdata/hayward_RC_HN_HS_HE_Shaw09Mod_GEOL.txt") flt = read_rupture_file(ff) fig = plt.figure() ax = fig.add_subplot(111, projection='3d') plot_rupture_wire3d(flt, ax) return fig
def test_plot_rupture_wire3d_EdgeRupture(): origin = Origin({'id':'','lat':0,'lon':0,'depth':0,'mag':0}) # Cascadia ff = os.path.join(shakedir, "tests/data/cascadia.json") rup = read_rupture_file(origin, ff) fig = plt.figure() ax = fig.add_subplot(111, projection='3d') plot_rupture_wire3d(rup, ax) return fig
def test_plot_rupture_wire3d_QuadRupture(): origin = Origin({'id':'','lat':0,'lon':0,'depth':0,'mag':0}) # A relatively complicated QuadRupture ff = os.path.join(shakedir, "tests/data/Barkaetal02_fault.txt") rup = read_rupture_file(origin, ff) fig = plt.figure() ax = fig.add_subplot(111, projection='3d') plot_rupture_wire3d(rup, ax) return fig