mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-11-13 02:43:32 +01:00
figure: fix beacon_field for phase
This commit is contained in:
parent
500e9fb323
commit
fdae3fd665
1 changed files with 6 additions and 1 deletions
|
@ -53,6 +53,9 @@ def grid_plot(grid, ax=None, **plot_kwargs):
|
||||||
if ax is None:
|
if ax is None:
|
||||||
ax = plt.gca()
|
ax = plt.gca()
|
||||||
|
|
||||||
|
if not grid:
|
||||||
|
return
|
||||||
|
|
||||||
x = [a.x for a in grid]
|
x = [a.x for a in grid]
|
||||||
y = [a.y for a in grid]
|
y = [a.y for a in grid]
|
||||||
l = [a.name for a in grid]
|
l = [a.name for a in grid]
|
||||||
|
@ -127,7 +130,9 @@ def plot_field(
|
||||||
|
|
||||||
scatter_kwargs = {**default_scatter_kwargs, **scatter_kwargs}
|
scatter_kwargs = {**default_scatter_kwargs, **scatter_kwargs}
|
||||||
|
|
||||||
grid_plot([tx] + ants, ax=ax)
|
if tx or ants:
|
||||||
|
grid_plot([tx] + ants, ax=ax)
|
||||||
|
|
||||||
if ref_ant is not None:
|
if ref_ant is not None:
|
||||||
ax.set_title("Single baseline\n reference antenna={}, f={}MHz".format(ref_ant.name, f_beacon/1e6))
|
ax.set_title("Single baseline\n reference antenna={}, f={}MHz".format(ref_ant.name, f_beacon/1e6))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue