test_source_pyrocko.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:kite 作者: pyrocko 项目源码 文件源码
def _plot_displacement(ms):
        if not plot:
            ms.down
            return

        import matplotlib.pyplot as plt
        from matplotlib.patches import Polygon  # noqa
        fig = plt.figure()
        ax = fig.gca()
        ms.processSources()

        ax.imshow(num.flipud(ms.north), aspect='equal',
                  extent=[0, ms.frame.E.max(), 0, ms.frame.N.max()])
        # for src in ms.sources:
        #     for seg in src.segments:
        #         p = Polygon(seg.outline(), alpha=.8, fill=False)
        #         ax.add_artist(p)
        plt.show()
        fig.clear()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号