2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

added many images; replaced subfigure by subfig

This commit is contained in:
Martin Thoma 2013-11-08 20:34:20 +01:00
parent 1c935769de
commit b390cff28c
13 changed files with 119 additions and 23 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

View file

@ -46,11 +46,11 @@
\centering
% draw Hilbert curves of order n=1,...,5
% Warning! Curves with order > 6 may crash TeX
\subfigure[$n=1$]{\tikz[scale=18] \hilbert((0mm,0mm),1);}~~
\subfigure[$n=2$]{\tikz[scale=6] \hilbert((0mm,0mm),2);}~~
\subfigure[$n=3$]{\tikz[scale=2.6] \hilbert((0mm,0mm),3);}~~
\subfigure[$n=4$]{\tikz[scale=1.2] \hilbert((0mm,0mm),4);}~~
\subfigure[$n=5$]{\tikz[scale=0.58] \hilbert((0mm,0mm),5);}%
\subfloat[$n=1$]{\tikz[scale=18] \hilbert((0mm,0mm),1);}~~
\subfloat[$n=2$]{\tikz[scale=6] \hilbert((0mm,0mm),2);}~~
\subfloat[$n=3$]{\tikz[scale=2.6] \hilbert((0mm,0mm),3);}~~
\subfloat[$n=4$]{\tikz[scale=1.2] \hilbert((0mm,0mm),4);}~~
\subfloat[$n=5$]{\tikz[scale=0.58] \hilbert((0mm,0mm),5);}%
\caption{Hilbert-Kurve}\xindex{Hilbert-Kurve}
\label{fig:hilbert-curve}
\end{figure}%

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View file

@ -0,0 +1,46 @@
% Code from Christian Feuersänger
% http://tex.stackexchange.com/questions/54794/using-a-pgfplots-style-legend-in-a-plain-old-tikzpicture#54834
% argument #1: any options
\newenvironment{customlegend}[1][]{%
\begingroup
% inits/clears the lists (which might be populated from previous
% axes):
\csname pgfplots@init@cleared@structures\endcsname
\pgfplotsset{#1}%
}{%
% draws the legend:
\csname pgfplots@createlegend\endcsname
\endgroup
}%
% makes \addlegendimage available (typically only available within an
% axis environment):
\def\addlegendimage{\csname pgfplots@addlegendimage\endcsname}
%%--------------------------------
% definition to insert numbers
\pgfkeys{/pgfplots/number in legend/.style={%
/pgfplots/legend image code/.code={%
\node at (0.295,-0.0225){#1};
},%
},
}
\begin{tikzpicture}
\draw[draw=white,pattern=north west lines, pattern color=blue] (-1.5,-1.5) rectangle (1.5,1.5);
\draw[fill=white] (0cm,0cm) circle(1cm);
\draw[fill=white,thick,pattern=dots, pattern color=red] (0cm,0cm) circle(1cm);
\begin{customlegend}[
legend entries={ % <= in the following there are the entries
au{\ss}en,
innen,
Jordankurve
},
legend style={at={(4.5,1.5)},font=\footnotesize}] % <= to define position and font legend
% the following are the "images" and numbers in the legend
\addlegendimage{area legend,pattern=north west lines, pattern color=blue,draw=white}
\addlegendimage{area legend,pattern=dots, pattern color=red,draw=white}
\addlegendimage{thick}
\end{customlegend}
\end{tikzpicture}

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 KiB