-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest.tex
66 lines (61 loc) · 3.22 KB
/
Test.tex
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
65
66
%\documentclass[12pt,a4paper]{article}
%\usepackage{standalone}
%\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
%\usepackage{ngerman}
%\usepackage{pifont,mathptmx,charter,courier}
%\usepackage[scaled]{helvet}
%\usepackage{tikz} % fuer schoene Zeichnungen
%\usetikzlibrary{intersections, calc, arrows, shapes, shapes.symbols, positioning, shadows, shadows.blur, trees, decorations.markings, patterns, pgfplots.groupplots, fadings}
%\usepackage{smartdiagram}
%\usepackage{pgfplots}
%\usepgfplotslibrary{colormaps}
%\pgfplotsset{compat=1.6, /pgf/number format/use comma, /pgf/number format/1000 sep={}, y tick label style={/pgf/number format/use comma, /pgf/number format/1000 sep={}}, x tick label style={/pgf/number format/use comma, /pgf/number format/1000 sep={}}}
%
%\pgfkeys{/pgfplots/linelabel/.style args={#1:#2:#3}{name path global=labelpath,execute at end plot={
%\path [name path global = labelpositionline](rel axis cs:#1,0) -- (rel axis cs:#1,1);
%\draw [text=black,inner sep=1pt,name intersections={of=labelpath and labelpositionline}] (intersection-1) -- +(#2) node [label={#3}] {};},}}
%
%\begin{document}
%\begin{tikzpicture}
% \begin{axis}[xmin=-6, xmax=6, axis x line=bottom, ymax=1.2, axis y line=left, xlabel={Zeit}, ylabel={Anzahl der Personen}, xtick = \empty, ytick = \empty]
% \addplot[blue, mark=none, thick, samples=100, domain=-6:6, linelabel=0.35:{-.5cm,1.6cm}:Tipping Point] (x,{1/(1+exp(-x))}) node [fill=red!100, draw=none, rounded corners, pos=0.35] {};
% \end{axis}
%\end{tikzpicture}
%\end{document}
\documentclass[12pt,a4paper]{article}
\usepackage{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ngerman}
\usepackage{pifont,mathptmx,charter,courier}
\usepackage[scaled]{helvet}
\usepackage{tikz} % fuer schoene Zeichnungen
\usetikzlibrary{intersections, calc, arrows, shapes, shapes.symbols, positioning, shadows, shadows.blur, trees, decorations.markings, patterns, pgfplots.groupplots, fadings}
\usepackage{smartdiagram}
\usepackage{pgfplots}
\usepgfplotslibrary{colormaps}
\pgfplotsset{compat=1.6, /pgf/number format/use comma, /pgf/number format/1000 sep={}, y tick label style={/pgf/number format/use comma, /pgf/number format/1000 sep={}}, x tick label style={/pgf/number format/use comma, /pgf/number format/1000 sep={}}}
\tikzset{
precise pin/.style args={#1:#2}{
pin={[
inner sep=0pt,
label={[
append after command={
node [
inner sep=0pt,
at=(\tikzlastnode.#1),
anchor=#1+180
] {#2}
}
]center:{}}
]#1:{}}
}
}
\begin{document}
\begin{tikzpicture}[pin distance=1.5cm]
\begin{axis}[xmin=-6, xmax=6, axis x line=bottom, ymax=1.2, axis y line=left, xlabel={Zeit}, ylabel={Anzahl der Personen}, xtick = \empty, ytick = \empty]
\addplot[blue, mark=none, thick, samples=100, domain=-6:6] (x,{1/(1+exp(-x))}) node [fill=red!100, draw=none, rounded corners, pos=0.35, precise pin=105:{\color{black}Tipping Point}, outer sep=0pt] {};
\end{axis}
\end{tikzpicture}
\end{document}