-
Notifications
You must be signed in to change notification settings - Fork 3
/
latex.tex
110 lines (89 loc) · 3.31 KB
/
latex.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
% !TeX program = lualatex
\documentclass[twoside,english]{book}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\newcommand{\fourgraphs}[6]
{
\begin{figure}[htpb]
\begin{minipage}[t]{0.5\textwidth} {#1} \end{minipage}
\begin{minipage}[t]{0.5\textwidth} {#2} \end{minipage}
\begin{minipage}[t]{0.5\textwidth} {#3} \end{minipage}
\begin{minipage}[t]{0.5\textwidth} {#4} \end{minipage}
\caption{#5} \label{#6}
\end{figure}
}
\begin{document}
\fourgraphs
{\input{./results/myexampleCa.tex} }
{\input{./results/myexampleCb.tex} }
{\input{./results/myexampleCc.tex} }
{\input{./results/myexampleCd.tex} }
{Heinon-Heiles system solution.
(a) Trajectory of the star $(x,y)$.
(b) Projection $(x,\dot{x})$ of the solution.
(c) Projection $(y,\dot{y})$ of the solution.
(d) Projection $(\dot{x},\dot{y})$.}
{fig:exampleCad}
\newcommand{\twographs}[4]
{
\begin{figure}[htpb]
\begin{minipage}[t]{0.5\textwidth} {#1} \end{minipage}
\begin{minipage}[t]{0.5\textwidth} {#2} \end{minipage}
\caption{#3} \label{#4}
\end{figure}
}
\twographs
{\input{./results/myexampleDa.tex}}
{\input{./results/myexampleDa.tex}}
{Heinon-Heiles system solution.
(a) Trajectory of the star $(x,y)$.
(b) Projection $(x,\dot{x})$ of the solution.
}
{fig:exampleDa}
\twographs
{\input{./results/myexampleDb.tex}}
{\input{./results/myexampleDb.tex}}
{Heinon-Heiles system solution.
(a) Trajectory of the star $(x,y)$.
(b) Projection $(x,\dot{x})$ of the solution.
}
{fig:exampleDb}
\end{document}
\newcommand{\isolines}
{
\begin{tikzpicture}
\begin{axis}[
height = \textwidth, width = \textwidth,
title style={at={(0.5,-0.4)}, yshift=-0.05}, title={(a)},
xlabel={ $x$ },
ylabel={ $y$ },
view={0}{90},
colormap/blackwhite,
]
\addplot3[contour gnuplot = { levels={-8., -4., -1.6, 0.0, 1.6, 4., 8. }},
mesh/ordering = y varies,
mesh/rows = 21,
mesh/cols = 21
]
table [skip first n=2] {./results/Uxx.plt};
\end{axis}
\end{tikzpicture}
}
\newcommand{\contour}
{
\begin{tikzpicture}
\begin{axis}[
height = 0.8\textwidth, width = 0.8\textwidth,
title style={at={(0.5,-0.5)}, yshift=-0.1},
title={(a)},
view={0}{90},
colorbar,
domain=-2:2,
% enlargelimits,
xlabel = $x$, ylabel = $y$, colormap/bluered,
view={0}{90}]
\addplot3[smooth, surf, mesh/rows=21, shader=interp, z buffer=sort] table [skip first n=2] {./results/Uxx.plt};
\end{axis}
\end{tikzpicture}
}