figure: antenna_setup remove spines

This commit is contained in:
Eric Teunis de Boone 2022-10-05 17:03:09 +02:00
parent 2a9572d0dc
commit 6d0a59c7b6

View file

@ -71,8 +71,6 @@ def plot_four_antenna_geometry(tx, ants, extra_ant=None, ax=None, line_kwargs={}
if ax is None: if ax is None:
ax = plt.gca() ax = plt.gca()
ax.set_aspect('equal') ax.set_aspect('equal')
ax.set_xlabel("x")
ax.set_ylabel("y")
line_kwargs = {**default_line_kwargs, **line_kwargs} line_kwargs = {**default_line_kwargs, **line_kwargs}
scatter_kwargs = {**default_scatter_kwargs, **scatter_kwargs} scatter_kwargs = {**default_scatter_kwargs, **scatter_kwargs}
@ -155,6 +153,15 @@ if __name__ == "__main__":
ax = plot_four_antenna_geometry(tx, ants, extra_ant=extra_ant) ax = plot_four_antenna_geometry(tx, ants, extra_ant=extra_ant)
if True:
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
ax.spines['bottom'].set_visible(False)
ax.spines['left'].set_visible(False)
ax.tick_params(left=False, bottom=False, labelleft=False, labelbottom=False)
fig = ax.get_figure() fig = ax.get_figure()
if args.fname is not None: if args.fname is not None: