2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/GeoTopo/figures/open-square.tex
2013-10-27 11:16:34 +01:00

27 lines
1.2 KiB
TeX

\begin{tikzpicture}
\begin{axis}[
axis x line=middle,
axis y line=middle,
xmin=-1.5, % start the diagram at this x-coordinate
xmax= 1.5, % end the diagram at this x-coordinate
ymin=-1.5, % start the diagram at this y-coordinate
ymax= 1.5, % end the diagram at this y-coordinate
ticks=none,
enlargelimits=true,
after end axis/.code={
\draw [decorate,decoration={brace,mirror,raise=2pt}] (axis cs:0,1) -- (axis cs:-1,1) node [midway,above=5pt] {$r$};
\draw [decorate,decoration={brace,mirror,raise=2pt}] (axis cs:1,1) -- (axis cs:0,1) node [midway,above=5pt] {$r$};
\draw [decorate,decoration={brace,mirror,raise=2pt}] (axis cs:1,0) -- (axis cs:1,1) node [midway,right=5pt] {$r$};
\draw [decorate,decoration={brace,mirror,raise=2pt}] (axis cs:1,-1) -- (axis cs:1,0) node [midway,right=5pt] {$r$};
}]
% Draw solid square
\addplot[mark=none, thick] coordinates {(-1,-1) (1,-1) (1,1) (-1,1) (-1,-1)};
\addplot[mark=*] coordinates {(0,0)};
% Draw axis text
\node at (axis cs:-1,0.5) [anchor=east] {$\mathfrak{B}_r(0) = $};
\end{axis}
\end{tikzpicture}