-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBeerP11.4_plot2.tex
More file actions
78 lines (75 loc) · 2.19 KB
/
Copy pathBeerP11.4_plot2.tex
File metadata and controls
78 lines (75 loc) · 2.19 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
\documentclass[tikz]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,mathtools,amssymb,physics,cancel,bm}
\usepackage[cal=boondox]{mathalfa}
\usepackage[per-mode=fraction]{siunitx}
\usepackage{cmbright}
\usepackage[T1]{fontenc}
\usepackage{tikz,pgfplots,pgf,pgfplotstable,tikz-3dplot}
\usetikzlibrary{positioning,
arrows,
decorations.pathreplacing,
decorations.text,
intersections,
decorations.pathmorphing,
patterns,
fit,
babel,
angles,
quotes,
shapes,
calc,
backgrounds,
3d}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
grid=both,
grid style={line width=.1pt, draw=gray!10},
major grid style={line width=.2pt,draw=gray!50},
xlabel=$t$ (s),
ylabel=$v$ (mm/s),
minor tick num=3,
xmin=0, xmax=2,
ymin=-500, ymax=1100,
axis lines=middle,
samples=1000,
domain=0:2,
xlabel style={at={(ticklabel* cs:1.15)},anchor=east},
ylabel style={at={(ticklabel* cs:1.17)},anchor=north},
axis line style={-latex},
try min ticks=5,
width=8cm,height=5cm,
legend cell align={left},
legend style={at={(axis cs:0.97,75)},anchor=south west,draw=none,font=\scriptsize}
]
\addplot [red, thick] {-4.8*60*exp(-4.8*x)*sin(16*deg(x))+60*16*exp(-4.8*x)*cos(16*deg(x))};
\end{axis}
\begin{scope}[shift={(0,-4.5)}]
\begin{axis}[
grid=both,
grid style={line width=.1pt, draw=gray!10},
major grid style={line width=.2pt,draw=gray!50},
xlabel=$t$ (s),
ylabel=$a$ (mm/s$^2$),
scaled y ticks=false,
minor tick num=3,
xmin=0, xmax=2,
ymin=-15000, ymax=7000,
axis lines=middle,
samples=1000,
domain=0:6.8,
xlabel style={at={(ticklabel* cs:1.15)},anchor=east},
ylabel style={at={(ticklabel* cs:1.19)},anchor=north},
axis line style={-latex},
try min ticks=5,
width=8cm,height=5cm,
legend cell align={left},
legend style={at={(axis cs:0.97,75)},anchor=south west,draw=none,font=\scriptsize}
]
\addplot [green!80!black, thick] {-15648*exp(-4.8*x)*sin(deg(16*x))-9216*exp(-4.8*x)*cos(deg(16*x))};
\end{axis}
\end{scope}
\end{tikzpicture}
\end{document}