Plotting examples

[1]:
import matplotlib as mpl
import matplotlib.pyplot as plt
from lofarantpos.db import LofarAntennaDatabase
from lofarantpos.plotutil import *
[2]:
plt.rcParams["figure.figsize"] = (8, 8)
[3]:
plot_station("RS210")
_images/plotutil-examples_3_0.png
[4]:
plot_superterp(circle=True)
_images/plotutil-examples_4_0.png
[5]:
plot_hba("LV614", labels=True, tilestyle="filled")
_images/plotutil-examples_5_0.png
[6]:
plot_lba("CS001", labels=True)
_images/plotutil-examples_6_0.png
[7]:
with plt.rc_context(
    {
        "lines.markerfacecolor": "white",
        "lines.markeredgecolor": "white",
        "text.color": "white",
        "figure.figsize": (12, 12),
    }
):
    plot_station("RS409", background="luchtfoto", tilestyle=None, labels=True)
_images/plotutil-examples_7_0.png
[8]:
with plt.rc_context({"lines.markersize": 0.3, "figure.figsize": (12, 12)}):
    plot_core(background="Carto_Light_No_Labels", tilestyle="filled", circle=False)
_images/plotutil-examples_8_0.png
[9]:
db = LofarAntennaDatabase()
lofar_centre = db.phase_centres["CS002LBA"]

with plt.rc_context({"lines.linewidth": 0.5}):
    fig, ax = plt.subplots(figsize=(14, 14))
    plot_superterp(ax=ax, circle=False, tilestyle="filled")
    ax.set_xlim(-0.7 * 640, 0.7 * 640)
    ax.set_ylim(-0.7 * 480, 0.7 * 480)
    ax.set_aspect("equal")
    # add_background(ax, db.phase_centres["CS002LBA"], "luchtfoto", zoom=16)
    # add_background(ax, db.phase_centres["CS002LBA"], "Stamen_Toner", zoom=16)
    # add_background(ax, db.phase_centres["CS002LBA"], "Carto_Light_No_Labels", zoom=18)
    add_background(ax, lofar_centre, "Stamen_Watercolour", zoom=16)
    plot_station("CS011", ax=ax, centre=lofar_centre, tilestyle="filled")
    plot_station("CS013", ax=ax, centre=lofar_centre, tilestyle="filled")
    plot_station("CS021", ax=ax, centre=lofar_centre, tilestyle="filled")
    ax.set_axis_off()
_images/plotutil-examples_9_0.png