[Tex/LaTex] How to create a grid with tikzpicture

diagramstikz-pgf

I would like to create a grid like this with tickpicture, but I don't know how to draw the points where lines match.

Best Answer

There might be wiser approaches, but to me it looks like something that can be solved with foreaches and manual placement of nodes.

grid

\documentclass{standalone}

\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
\tikzset{dot/.style={fill=black,circle}}

\foreach\l[count=\y] in {E,...,A}
{
\draw (0,\y) -- (7.5,\y);
\node at (-0.5,\y){\l};
}

\foreach \x in {1,2,...,7}
{
\draw (\x,0) -- (\x,5.5);
\node at (\x,-0.5){\x};
}

\node[dot] at (1,5){};
\node[dot] at (2,3){};
\node[dot] at (2,4){};
\node[dot] at (3,1){};
\node[dot] at (4,4){};
\node[dot] at (5,2){};
\node[dot] at (6,3){};
\node[dot] at (7,2){};

\end{tikzpicture}
\end{document}
Related Question