The following is what I have currently.
\newcommand\medlsquare[4]
{
\addplot[thick] coordinates { (#1, #2) (#1+#3, #2) (#1+#3, #2+#3) (#1, #2+#3) (#1, #2)
};
I want to reuse the co-ordinates like below
\newcommand\medlsquare[4]
{
\coordinate (#4A) at (#1, #2);
\coordinate (#4B) at (#1++3, #2);
\coordinate (#4C) at (#1+#3, #2+#3);
\coordinate (#4D) at (#1, #2+#3);
// what is the option do do something like below?
\addplot[thick] coordinates {/#4A, /#4B, /#4C, /#4D};
};
