Commit 535c67bb authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

add station names to map

parent 2d5687eb
......@@ -65,8 +65,21 @@ def map_geometry(config, output_path):
def plot_receivers(axes, receivers, system='latlon', units=1.0, style=dict(
color='black', ms=10.)):
x, y = geo.points_coords(receivers, system=system)
return axes.plot(y/units, x/units, '^', **style)
xs, ys = geo.points_coords(receivers, system=system)
artists = axes.plot(ys/units, xs/units, '^', **style)
names = ['.'.join(x for x in rec.codes if x) for rec in receivers]
for x, y, name in zip(xs, ys, names):
artists.append(axes.annotate(
name,
xy=(y/units, x/units),
xytext=(10., 0.),
textcoords='offset points',
va='bottom',
ha='left',
alpha=0.25,
color='black'))
return artists
def plot_geometry_carthesian(grid, receivers):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment