aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/erdbeben/images/standard.tex
blob: 74ac7a10fa42bc203ce23fe34a54cea5bd71f0bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%
% standard.tex -- Kombination der Standard-Bilder
%
% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
%
\documentclass[tikz]{standalone}
\usepackage{amsmath}
\usepackage{times}
\usepackage{txfonts}
\usepackage{pgfplots}
\usepackage{csvsimple}
\usetikzlibrary{arrows,intersections,math}
\begin{document}
\newboolean{showgrid}
\setboolean{showgrid}{false}
\def\skala{1}
\begin{tikzpicture}[>=latex,thick,scale=\skala]

\node at (0,0) {\includegraphics[width=14cm]{../Standard_alles.PNG}};

\def\yten{-2.12}
\def\yfifteen{0.1}

\def\links{12.5}
\def\rechts{13.4}

\pgfmathparse{(\yfifteen-(\yten))/5}
\xdef\m{\pgfmathresult}
\xdef\b{\yten}

%\node at (0,7) {$m=\m$}; \node at (0,8) {$b=\b$};

\pgfmathparse{\m*(\links-10)+(\b)}
\xdef\Links{\pgfmathresult}

\pgfmathparse{\m*(\rechts-10)+(\b)}
\xdef\Rechts{\pgfmathresult}

\begin{scope}[yshift=-9cm]
\node at (0,0) {\includegraphics[width=14cm]{../Standard_Zoom.PNG}};
\end{scope}

\def\breite{7}
\def\hoehe{2}

% Gitter
\ifthenelse{\boolean{showgrid}}{
\draw[step=0.1,line width=0.1pt] (-\breite,-\hoehe) grid (\breite, \hoehe);
\draw[step=0.5,line width=0.4pt] (-\breite,-\hoehe) grid (\breite, \hoehe);
\draw                            (-\breite,-\hoehe) grid (\breite, \hoehe);
\fill (0,0) circle[radius=0.05];
}{}

\def\unten{-4.15}

\draw[line width=0.7pt] (\Links,\unten) rectangle (\Rechts,4.18);
\draw[line width=0.7pt] (\Links,\unten) -- (\Links,{\unten-0.05})
	-- (-6.36,-4.6) -- (-6.36,-4.9);
\draw[line width=0.7pt] (\Rechts,\unten) -- (\Rechts,{\unten-0.05})
	-- (6.87,-4.6) -- (6.87,-4.9);

\end{tikzpicture}
\end{document}