GravMag: Interactive 2D forward modeling with polygonsΒΆ

Download source code: gravmag_2d_polygon_interactive.py

"""
GravMag: Interactive 2D forward modeling with polygons
"""
import numpy
from fatiando.gravmag.interactive import Moulder

area = (0, 100000, 0, 5000)
xp = numpy.arange(0, 100000, 1000)
zp = numpy.zeros_like(xp)
app = Moulder(area, xp, zp)
app.run()