2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-18 19:18:21 +02:00
LaTeX-examples/documents/GeoTopo/figures/open-square.tex
Martin Thoma 7740f0147f Remove trailing spaces
The commands

find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

and

find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

were used to do so.
2015-10-14 14:25:34 +02: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}