\begin{minipage}{0.32\textwidth}
	\centering
	\begin{tikzpicture}[scale=0.6]
		%Weights
		\path[fill=gray!20] (1,0) rectangle (4,1) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (1,0) rectangle (4,1) node[pos=.5, color=black] {};
		\path[fill=gray!20] (2,1) rectangle (4,2) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (2,1) rectangle (4,2) node[pos=.5, color=black] {};	
		\draw[->,>=latex] (0,-0.5) -- (0,6.5);
		\draw[->,>=latex] (-0.5,0) -- (4.5,0);
		\draw[color=myblue, line width=2pt] (0,0) -- (1,0) -- (1,1) -- (2,1) -- (2,2) -- (4,2) -- (4,3) -- (3.95,3) -- (3.95,6);
		\draw[color=myred, line width=2pt] (4.05,6) -- (4.05,3);
		\foreach \x in {0,...,4}
		\foreach \y in {0,...,6}
		{\draw[fill=black](\x,\y)circle(2pt);}
		\node[above left=-0.1, color=black] at (0,0) {\footnotesize $(0,0)$};
		\node[above left=-0.1, color=black] at (4,3) {\footnotesize $(k,n+m-k)$};
		\node[above right=-0.1, color=black] at (4,6) {\footnotesize \color{black} $(j,n-j)$};
		\node[color=myblue] at (0.5,0.5) {\footnotesize $P_1$};
		\node[color=myred] at (4.5,4.5) {\footnotesize $P_2$};
		\draw[fill=black,color=black](0,0)circle(4pt);
		\draw[fill=black,color=black](4,3)circle(4pt);
		\draw[fill=myblue,color=black](4,6)circle(4pt);
	\end{tikzpicture}
\end{minipage}
\hfill
\begin{minipage}{0.32\textwidth} \centering
	\begin{tikzpicture}[scale=0.6]
		%Weights
		\path[fill=gray!20] (0,0) rectangle (1,-1) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (0,0) rectangle (1,-1) node[pos=.5, color=black] {};
		\path[fill=gray!20] (1,0) rectangle (2,-3) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (1,0) rectangle (2,-3) node[pos=.5, color=black] {};		
		\draw[->,>=latex] (0,-4.5) -- (0,3.5);
		\draw[->,>=latex] (-0.5,0) -- (3.5,0);	
		\draw[color=myred, line width=2pt] (0.05,3) -- (0.05,0) -- (0,0) -- (0,-1) -- (1,-1) -- (1,-3) -- (2,-3) -- (2,-4);
		\draw[color=myblue, line width=2pt] (-0.05,0) -- (-0.05,3);	
		\foreach \x in {0,...,3}
		\foreach \y in {-4,...,3}
		{\draw[fill=black](\x,\y)circle(2pt);}
		\node[above left=-0.1, color=black] at (0,0) {\footnotesize $(0,0)$};
		\node[above right=-0.1, color=black] at (2,-4) {\footnotesize $(k,n+m-k)$};
		\node[below right=-0.1, color=black] at (0,3) {\footnotesize \color{black} $(j,n-j)$};
		\node[color=myblue] at (-0.5,1.5) {\footnotesize $P_1$};
		\node[color=myred] at (0.5,-2) {\footnotesize $P_2$};
		\draw[fill=black,color=black](0,0)circle(4pt);
		\draw[fill=black,color=black](2,-4)circle(4pt);
		\draw[fill=myblue,color=black](0,3)circle(4pt);
	\end{tikzpicture}
\end{minipage}
\hfill
\begin{minipage}{0.32\textwidth}\centering
	\begin{tikzpicture}[scale=0.6]
		%Weights
		\path[fill=gray!20] (1,0) rectangle (2,1) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (1,0) rectangle (2,1) node[pos=.5, color=black] {};
		\path[fill=gray!20] (2,0) rectangle (3,2) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (2,0) rectangle (3,2) node[pos=.5, color=black] {};	
		\draw[->,>=latex] (0,-3.5) -- (0,3.5);
		\draw[->,>=latex] (-0.5,0) -- (3.5,0);		
		\draw[color=myred, line width=2pt] (0.05,-3) -- (0.05,0) -- (1,0) -- (1,1) -- (2,1) -- (2,2) -- (3,2) -- (3,3);
		\draw[color=myblue, line width=2pt] (-0.05,0) -- (-0.05,-3);				
		\foreach \x in {0,...,3}
		\foreach \y in {-4,...,3}
		{\draw[fill=black](\x,\y)circle(2pt);}
		\node[above left=-0.1, color=black] at (0,0) {\footnotesize $(0,0)$};
		\node[below right=-0.1, color=black] at (3,3) {\footnotesize $(k,n+m-k)$};
		\node[above right=-0.1, color=black] at (0,-3) {\footnotesize \color{black} $(j,n-j)$};
		\node[color=myblue] at (-0.5,-1.5) {\footnotesize $P_1$};
		\node[color=myred] at (1.5,1.5) {\footnotesize $P_2$};
		\draw[fill=black,color=black](0,0)circle(4pt);
		\draw[fill=black,color=black](3,3)circle(4pt);
		\draw[fill=myblue,color=black](0,-3)circle(4pt);
	\end{tikzpicture}
\end{minipage}
\begin{minipage}{0.32\textwidth}\centering
	$Q(10,-3,4), j=4$
\end{minipage}
\hfill
\begin{minipage}{0.32\textwidth}\centering
	$Q(3,-5,2), j=0$
\end{minipage}
\hfill
\begin{minipage}{0.32\textwidth}\centering
	$Q(-3,8,3), j=0$
\end{minipage}