grid = key=master,group=grid,depth=1,widthcm=7,heightcm=7.5,gcell=20, \
       xmarg=0,ymarg=0,shrink=false,rounded=true,                     \
       border_thickness=very thin,border_color=gray20,                \
       gback_color=gray85,gline_thickness=very thin,gline_color=white
 
panel = key=panel_cn_pos,group=contact,depth=2,x=20,y=-69,widthcm=1.8, \
        heightcm=1,rounded=true,border_thickness=thin,                 \
        border_color=gray40,panel_color=beige
 
panel = key=panel_cn_traj,group=contact,depth=2,x=22,y=-14,widthcm=2, \
        heightcm=0.9,rounded=true,border_thickness=thin,              \
        border_color=gray40,panel_color=beige
 
panel = key=panel_os_pos,group=ownship,depth=2,x=-43,y=-57,widthcm=2, \
        heightcm=0.9,rounded=true,border_thickness=thin,              \
        border_color=gray40,panel_color=beige
 
panel = key=panel_os_traj,group=ownship,depth=2,x=-32,y=15,widthcm=2, \
        heightcm=0.9,rounded=true,border_thickness=thin,              \
        border_color=gray40,panel_color=beige
 
swarmpath = key=,group=,depth=100,begtime=0,endtime=0,nowtime=0
 
frame = key=framekey,group=frame,depth=100,xl=-60,xh=60,yl=-80,yh=40
 
line = key=speed_ownship,group=lines,depth=100,x1=-40,y1=-20, \
       x2=-35.619,y2=7.655,line_color=black,line_style=solid, \
       line_thickness=very thin,endtype2=arrow
 
line = key=speed_contact,group=lines,depth=100,x1=30,y1=-40,x2=20.275, \
       y2=-29.929,line_color=black,line_style=solid,                   \
       line_thickness=very thin,endtype2=arrow
 
line = key=os_cn_range,group=field,depth=100,x1=-40,y1=-20,x2=30, \
       y2=-40,line_color=gray40,line_style=solid,                 \
       line_thickness=very thin
 
line = key=cell_key_ns,group=field,depth=100,x1=-55,y1=40,x2=-55,y2=20, \
       line_color=gray40,line_style=solid,line_thickness=thin,          \
       endtype1=arrow,endtype2=arrow
 
line = key=cell_key_ew,group=field,depth=100,x1=-60,y1=25,x2=-40,y2=25, \
       line_color=gray40,line_style=solid,line_thickness=thin,          \
       endtype1=arrow,endtype2=arrow
 
label = key=contact_pos,group=contact,depth=100,         \
        label=macro:macro_cn_init_pos,label_color=black, \
        label_size=scriptsize,x=35,y=-60
 
label = key=contact_traj,group=contact,depth=100,         \
        label=macro:macro_cn_init_traj,label_color=black, \
        label_size=scriptsize,x=38.5,y=-6.5
 
label = key=ownship_pos,group=ownship,depth=100,         \
        label=macro:macro_os_init_pos,label_color=black, \
        label_size=scriptsize,x=-27.5,y=-49
 
label = key=ownship_traj,group=ownship,depth=100,         \
        label=macro:macro_os_init_traj,label_color=black, \
        label_size=scriptsize,x=-15,y=23
 
label = key=contact_name,group=contact,depth=100,label=contact, \
        label_color=black,label_size=scriptsize,x=40,y=-30
 
label = key=ownship_name,group=contact,depth=100,label=ownship, \
        label_color=black,label_size=scriptsize,x=-40,y=-30
 
label = key=range,group=range,depth=100,label=${range=72.8m}$, \
        label_color=black,label_size=scriptsize,x=-14,y=-18
 
label = key=cell_key_label,group=field,depth=100,label=20m, \
        label_color=black,label_size=tiny,x=-50,y=28
 
\begin{macro}[macro_cn_init_pos][macros]
$\begin{aligned}
x_{cn} &=30   \\
y_{cn} &=-40
\end{aligned}$
\end{macro}

 
\begin{macro}[macro_cn_init_traj][macros]
$\begin{aligned}
\theta_{cn} &=316^{\circ}   \\
v_{cn} &=0.7m/s
\end{aligned}$
\end{macro}

 
\begin{macro}[macro_os_init_pos][macros]
$\begin{aligned}
x_{os} &=-40   \\
y_{os} &=-20
\end{aligned}$
\end{macro}

 
\begin{macro}[macro_os_init_traj][macros]
$\begin{aligned}
\theta_{os} &=9^{\circ}   \\
v_{os} &=0.5m/s
\end{aligned}$
\end{macro}

 
vessel = key=ownship,group=ships,depth=900,x=-40,y=-20,hdg=9,     \
         body_type=kayak,length=8,wid_mbody=3.2,wid_stern=2.172,  \
         pct_mbody=0.5,line_color=black,line_thickness=very thin, \
         fill_color=white
 
vessel = key=contact,group=ships,depth=900,x=30,y=-40,hdg=316,    \
         body_type=kayak,length=8,wid_mbody=3.2,wid_stern=2.172,  \
         pct_mbody=0.5,line_color=black,line_thickness=very thin, \
         fill_color=gray60