Last active
July 27, 2017 22:21
-
-
Save takumim/2cfefa4487accf70cffb053e6070f1a1 to your computer and use it in GitHub Desktop.
Diagrams for https://math.stackexchange.com/a/2371961/116766
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{article} | |
\usepackage{stix} | |
\usepackage{tikz} | |
\begin{document} | |
\begin{tikzpicture}[domain=0:5] | |
\path[fill=gray!20] (0,3) -- (4,0) -- (4.9,0) -- (4.9,3.9) -- (0,3.9) -- (0,3); | |
\draw[very thin,color=gray] (-0.1,-0.1) grid (4.9,3.9); | |
\draw[->] (-0.2,0) -- (5.1,0); | |
\draw[->] (0,-0.2) -- (0,4.1); | |
\filldraw[black] (0,3) circle (2pt); | |
\filldraw[black] (3,1) circle (2pt); | |
\filldraw[black] (4,0) circle (2pt); | |
\draw[dashed] (0,3) -- (4,0); | |
\end{tikzpicture} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{article} | |
\usepackage{stix} | |
\usepackage{tikz-cd} | |
\begin{document} | |
\begin{tikzpicture}[domain=0:2] | |
\path[fill=gray!20] (0,1) -- (1,0) -- (1.9,0) -- (1.9,3.9) -- (0,3.9) -- (0,1); | |
\draw[very thin,color=gray] (-0.1,-0.1) grid (1.9,3.9); | |
\draw[-cm to] (-0.2,0) -- (2.1,0); | |
\draw[-cm to] (0,-0.2) -- (0,4.1); | |
\filldraw[black] (1,1) circle (2pt); | |
\filldraw[black] (1,0) circle (2pt); | |
\filldraw[black] (0,3) circle (2pt); | |
\filldraw[black] (0,2) circle (2pt); | |
\filldraw[black] (0,1) circle (2pt); | |
\draw[dashed] (0,1) -- (1,0); | |
\end{tikzpicture} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{article} | |
\usepackage{stix} | |
\usepackage{tikz-cd} | |
\begin{document} | |
\begin{tikzpicture}[domain=0:3] | |
\path[fill=gray!20] (0,1) -- (2,0) -- (2.9,0) -- (2.9,3.9) -- (0,3.9) -- (0,1); | |
\draw[very thin,color=gray] (-0.1,-0.1) grid (2.9,3.9); | |
\draw[-cm to] (-0.2,0) -- (3.1,0); | |
\draw[-cm to] (0,-0.2) -- (0,4.1); | |
\filldraw[black] (2,3) circle (2pt); | |
\filldraw[black] (2,2) circle (2pt); | |
\filldraw[black] (2,1) circle (2pt); | |
\filldraw[black] (2,0) circle (2pt); | |
\filldraw[black] (1,2) circle (2pt); | |
\filldraw[black] (1,1) circle (2pt); | |
\filldraw[black] (0,1) circle (2pt); | |
\draw[dashed] (0,1) -- (2,0); | |
\end{tikzpicture} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{article} | |
\usepackage{stix} | |
\usepackage{tikz-cd} | |
\begin{document} | |
\begin{tikzpicture}[domain=0:7] | |
\path[fill=gray!20] (0,1) -- (1,0) -- (6.9,0) -- (6.9,3.9) -- (0,3.9) -- (0,1); | |
\draw[very thin,color=gray] (-0.1,-0.1) grid (6.9,3.9); | |
\draw[-cm to] (-0.2,0) -- (7.1,0); | |
\draw[-cm to] (0,-0.2) -- (0,4.1); | |
\filldraw[black] (6,3) circle (2pt); | |
\filldraw[black] (6,2) circle (2pt); | |
\filldraw[black] (6,1) circle (2pt); | |
\filldraw[black] (6,0) circle (2pt); | |
\filldraw[black] (4,2) circle (2pt); | |
\filldraw[black] (4,1) circle (2pt); | |
\filldraw[black] (4,0) circle (2pt); | |
\filldraw[black] (3,2) circle (2pt); | |
\filldraw[black] (3,1) circle (2pt); | |
\filldraw[black] (3,0) circle (2pt); | |
\filldraw[black] (2,1) circle (2pt); | |
\filldraw[black] (2,0) circle (2pt); | |
\filldraw[black] (1,1) circle (2pt); | |
\filldraw[black] (1,0) circle (2pt); | |
\filldraw[black] (0,1) circle (2pt); | |
\draw[dashed] (0,1) -- (1,0); | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment