def plot_telescope(self, outdir, figsize=(8, 8), dpi=150):
"""
Make plots showing all the telescope stations, central
stations, and core stations.
"""
if not has_matplotlib:
logger.error("matplotlib required to plot the telescope")
x, y = self.layouts_enu[:, 0], self.layouts_enu[:, 1]
# All stations
fpng = os.path.join(outdir, "layout_all.png")
fig = Figure(figsize=figsize, dpi=dpi)
FigureCanvas(fig)
ax = fig.add_subplot(111, aspect="equal")
ax.plot(x, y, "ko")
ax.grid()
ax.set_xlabel("East [m]")
ax.set_ylabel("North [m]")
ax.set_title("SKA1-low Stations Layout (All #%d)" % len(x))
fig.tight_layout()
fig.savefig(fpng)
logger.debug("Made plot for telescope all station: %s" % fpng)
# TODO...
评论列表
文章目录