Beamer

Version 8 (Andrey Golovin, 03.10.2013 01:06)

1 1 Andrey Golovin
h1. Приёмы создания илюстраций в LATEX
2 1 Andrey Golovin
3 1 Andrey Golovin
4 1 Andrey Golovin
> > Файлы и листинги которые я размещаю не идеальны, это рабочие файлы, которые делались часто на скорость.
5 1 Andrey Golovin
6 8 Andrey Golovin
h2. Преамбула
7 1 Andrey Golovin
8 1 Andrey Golovin
В большинстве случаев я использую некий шаблон постоянного содержания откуда указывается путь к файлу с содержимым. Если надо задать некоторые функции я их  выношу в отдельный файл, как впрочем настройки стилей, так и пакеты для использования.
9 1 Andrey Golovin
10 2 Andrey Golovin
* Основной файл: attachment:prez.tex
11 2 Andrey Golovin
* Функции: attachment:functions.tex
12 2 Andrey Golovin
* Подключаемые пакеты: attachment:packages.tex
13 2 Andrey Golovin
* Настроки стилей: attachment:header.sty 
14 2 Andrey Golovin
* Пример файла с содержимым: attachment:cont.tex
15 4 Andrey Golovin
* Все растровые картинки располагаются в директории *./fig*
16 4 Andrey Golovin
* Файлы для графиков располагаются в директории *./plot*
17 3 Andrey Golovin
18 3 Andrey Golovin
Для сборки всего в один pdf файл используется:
19 1 Andrey Golovin
<code>
20 4 Andrey Golovin
lualatex --shell-escape prez.tex
21 1 Andrey Golovin
</code>
22 4 Andrey Golovin
23 4 Andrey Golovin
h2. Примеры
24 4 Andrey Golovin
25 5 Andrey Golovin
h3. Химические формулы (chemfig):
26 5 Andrey Golovin
27 5 Andrey Golovin
Номера атомов располагались с помощью невидимых  связей
28 5 Andrey Golovin
29 5 Andrey Golovin
|_.Код      |_. Результат   |
30 5 Andrey Golovin
|<pre><code>
31 5 Andrey Golovin
\begin{frame}{Основания}
32 5 Andrey Golovin
    \setatomsep{1.6em}%
33 5 Andrey Golovin
      \footnotesize \begin{tabular}{c c c c}
34 6 Andrey Golovin
          \chemfig{*6((-[5,0.5,,,draw=none]\color{blue}2)=N(-[6,0.5,,,draw=none]\color{blue}3)-
35 6 Andrey Golovin
             (-[6,0.5,,,draw=none]\color{blue}4)*6(
36 6 Andrey Golovin
            -\chembelow{N}{H}(-[6,1.0,,,draw=none]\color{blue}9)-
37 6 Andrey Golovin
              (-[7,0.5,,,draw=none]\color{blue}8)=N?(-[1,0.5,,,draw=none]\color{blue}7))
38 6 Andrey Golovin
              =?(-[2,0.5,,,draw=none]\color{blue}5)-(-[2,0.5,,,draw=none]\color{blue}6)
39 6 Andrey Golovin
              =N(-[3,0.5,,,draw=none]\color{blue}1)-[,,1])} &
40 5 Andrey Golovin
41 1 Andrey Golovin
            \chemfig{*6((-[:-130]H_2N)=N-*6(-\chembelow{N}{H}-=N?)=?-(=[2]O)-HN-[,,2])}&
42 1 Andrey Golovin
            \chemfig{*6(=N-*6(-\chembelow{N}{H}-=N?)=?-(-[2]NH_2)=N-[,,1])}&~\\[1.0cm]-HN-[,,2])}&
43 1 Andrey Golovin
            \chemfig{*6(=N-*6(-\chembelow{N}{H}-=N?)=?-(-[2]NH_2)=N-[,,1])}&~\\[1.0cm]
44 1 Andrey Golovin
            Пурин&Гуанин&Аденин& \\[.2cm]
45 5 Andrey Golovin
             \hline\\[.2cm]
46 6 Andrey Golovin
             \chemfig{*6((-[5,0.5,,,draw=none]\color{blue}2)=N(-[6,0.5,,,draw=none]\color{blue}1)
47 6 Andrey Golovin
             -(-[7,0.5,,,draw=none]\color{blue}6)
48 6 Andrey Golovin
             =(-[1,0.5,,,draw=none]\color{blue}5)-(-[2,0.5,,,draw=none]\color{blue}4)=N(
49 6 Andrey Golovin
             -[3,0.6,,,draw=none]\color{blue}3)-)} &
50 5 Andrey Golovin
            \chemfig{*6((=[5]O)-\chembelow{N}{H}-=-(-[2]NH_2)=N-)} &
51 5 Andrey Golovin
            \chemfig{*6((=[5]O)-\chembelow{N}{H}-=-(=[2]O)-HN-[,,2])} &
52 5 Andrey Golovin
            \chemfig{*6((=[5]O)-\chembelow{N}{H}-=(-[1])-(=[2]O)-HN-[,,2])} 
53 5 Andrey Golovin
              \\[1.0cm]
54 5 Andrey Golovin
            Пиримидин&Цитозин&Урацил&Тимин\\[.2cm]
55 5 Andrey Golovin
             \hline
56 5 Andrey Golovin
57 5 Andrey Golovin
        \end{tabular}
58 5 Andrey Golovin
        \end{center}
59 5 Andrey Golovin
\end{frame}</code></pre>| !nucl-5.png! |
60 5 Andrey Golovin
61 5 Andrey Golovin
Стерео связи и подписи:
62 5 Andrey Golovin
63 5 Andrey Golovin
|_.Код      |_. Результат   |
64 5 Andrey Golovin
|<pre><code>
65 5 Andrey Golovin
\begin{frame}{Основания и остов}
66 5 Andrey Golovin
        \begin{center}
67 5 Andrey Golovin
    \begin{tikzpicture}[help lines/.style={thin,draw=black!50}]
68 5 Andrey Golovin
        \node (2) at (6,5) {N-гликозидная связь};
69 5 Andrey Golovin
        \node (1) at (2,2) {%
70 5 Andrey Golovin
    \schemestart[][west]
71 5 Andrey Golovin
    \setatomsep{1.7em}\setcrambond{0.2em}{}{}%
72 5 Andrey Golovin
     \small\chemfig{-[0]O-[0]-[6]?<[7](-[,,,,line
73 5 Andrey Golovin
        width=0.2em]>[1](-[2]OH)-[:160,1.3]O?)-[6]O
74 5 Andrey Golovin
        -[6]P(=[:-90]O)(-[4]\chemabove{O}{\hspace{1em}-})
75 5 Andrey Golovin
        -[0]O-[0]-[6]?[c2]<[7](-[,,,,line
76 5 Andrey Golovin
        width=0.2em]>[1](-[2]OH)-[:160,1.3]O?[c2])-[6]O-[6]
77 5 Andrey Golovin
    }
78 5 Andrey Golovin
    \arrow{-U>[ 2B ]}[0] 
79 5 Andrey Golovin
    \setatomsep{1.7em}\setcrambond{0.2em}{}{}%
80 5 Andrey Golovin
      \small\chemfig{-[0]O-[0]-[6]?<[7](-[,,,,line
81 5 Andrey Golovin
        width=0.2em]>[1](-[2]B)-[:160,1.3]O?)-[6]O
82 5 Andrey Golovin
        -[6]P(=[:-90]O)(-[4]\chemabove{O}{\hspace{1em}-})
83 5 Andrey Golovin
        -[0]O-[0]-[6]?[c2]<[7](-[,,,,line
84 5 Andrey Golovin
        width=0.2em]>[1](-[2]B)-[:160,1.3]O?[c2])-[6]O-[6]
85 5 Andrey Golovin
    }
86 5 Andrey Golovin
\schemestop};
87 5 Andrey Golovin
\draw [orange,thick](2.south east) -- (2.south);
88 5 Andrey Golovin
\draw [->,orange,thick] (2.south east) -- (6,3.8);
89 5 Andrey Golovin
\end{tikzpicture}
90 5 Andrey Golovin
        \end{center}
91 5 Andrey Golovin
\end{frame}
92 5 Andrey Golovin
</code></pre>| !nucl-6.png! |
93 5 Andrey Golovin
94 5 Andrey Golovin
95 1 Andrey Golovin
h3. Формулы и объеткы tikz:
96 1 Andrey Golovin
97 1 Andrey Golovin
|_.Код      |_. Результат   |
98 1 Andrey Golovin
|<pre><code>
99 5 Andrey Golovin
{Молекулярная динамика}
100 5 Andrey Golovin
\begin{center}
101 5 Andrey Golovin
    \tiny
102 6 Andrey Golovin
$$ U=\sum_{bonds}{ \frac{k_i}{2} ( l_i - l_0)^2} + \sum_{angles}{ \frac{k_i}{2} ( \phi_i - \phi_0)^2} 
103 6 Andrey Golovin
+ \sum_{torsions} { \frac{V_n}{2} (1 + cos(n\omega - \gamma))} + $$
104 6 Andrey Golovin
$$ + \sum_{i=1}^N \sum_{j=i+1}^N  \left (   4 \epsilon_{ij} \left [ \left ( \frac{\sigma_{ij}}{r_{ij}} 
105 6 Andrey Golovin
\right )^{12} - \left ( \frac{\sigma_{ij}}{r_{ij}} \right )^6  \right ] + 
106 5 Andrey Golovin
\frac{q_i q_j}{ 4\pi \epsilon_0 r_{ij}} \right ) $$  
107 5 Andrey Golovin
\rule[0.5cm]{\linewidth}{1pt}
108 5 Andrey Golovin
\begin{tikzpicture}[node distance=1cm, auto]  
109 5 Andrey Golovin
\tikzset{%
110 5 Andrey Golovin
    mynode/.style={rectangle,draw=brown, top color=blue!10,bottom color=blue!10 },
111 5 Andrey Golovin
    myarrow/.style={->, >=latex', shorten >=1pt, thick},
112 5 Andrey Golovin
    mylabel/.style={text width=7em, text centered} 
113 5 Andrey Golovin
}  
114 5 Andrey Golovin
\node (nGray)   [mynode]   at      (0, 2.5) 
115 5 Andrey Golovin
{%
116 5 Andrey Golovin
    \begin{minipage}{0.4\textwidth}
117 5 Andrey Golovin
        \footnotesize Расчёт силы, действующей на атом  
118 5 Andrey Golovin
        \begin{center}
119 5 Andrey Golovin
        \normalsize
120 5 Andrey Golovin
$ F_i= \sum_j F_{ij} $
121 5 Andrey Golovin
       \end{center}
122 5 Andrey Golovin
    \end{minipage}
123 5 Andrey Golovin
};
124 5 Andrey Golovin
\node (nRed)    [mynode]    at      (3, 0)
125 5 Andrey Golovin
{%
126 5 Andrey Golovin
    \begin{minipage}{0.4\textwidth}
127 5 Andrey Golovin
       \footnotesize Расчёт новых координат  
128 5 Andrey Golovin
        \normalsize
129 5 Andrey Golovin
        \begin{center}
130 5 Andrey Golovin
            $ \frac{\partial^2r_i}{\partial t^2}=\frac{F_i}{m_i} $ \\
131 5 Andrey Golovin
            $ \frac{\partial r_i}{\partial t} =v_i , \frac{\partial
132 5 Andrey Golovin
            v_i}{\partial t} = \frac{F_i}{m_i} $
133 5 Andrey Golovin
       \end{center}
134 5 Andrey Golovin
    \end{minipage}
135 5 Andrey Golovin
};
136 5 Andrey Golovin
\node[mylabel, below of=nGray] (label1) at (-1,2) {%
137 5 Andrey Golovin
    \begin{minipage}{0.1\textwidth}
138 1 Andrey Golovin
           \[ \Delta t \]
139 5 Andrey Golovin
    \end{minipage}
140 5 Andrey Golovin
   };  
141 5 Andrey Golovin
\draw [ color   = red,   ultra thick,  -> ](nGray) |- (nRed);
142 5 Andrey Golovin
\draw [ color   = brown, ultra thick,  -> ](nRed) |- (nGray);
143 5 Andrey Golovin
\end{tikzpicture} 
144 5 Andrey Golovin
\end{center}
145 5 Andrey Golovin
\end{frame}%
146 6 Andrey Golovin
</code></pre>| !prez-11.png! |
147 5 Andrey Golovin
148 5 Andrey Golovin
149 5 Andrey Golovin
150 5 Andrey Golovin
h3. Изображение и объеткы tikz:
151 5 Andrey Golovin
152 5 Andrey Golovin
|_.Код      |_. Результат   |
153 5 Andrey Golovin
|<pre><code>
154 5 Andrey Golovin
\begin{frame}%
155 5 Andrey Golovin
{Система для моделирования}
156 5 Andrey Golovin
\begin{tikzpicture}[xscale=1.0,yscale=1.0]
157 5 Andrey Golovin
    \node (ri) at (3,2 ) {\includegraphics[width=0.45\textwidth]{ribo.png}};
158 5 Andrey Golovin
    \node (cu) at (9,2) {\includegraphics[width=0.45\textwidth]{ribocube.png}};
159 5 Andrey Golovin
    \draw[thick,opacity=0.7] (2,1) rectangle (4,3);
160 5 Andrey Golovin
    \draw[thick] (cu.south west) rectangle (cu.north east);
161 1 Andrey Golovin
    \draw[dashed] (4,3) -- (cu.north west);
162 5 Andrey Golovin
    \draw[dashed] (4,1) -- (cu.south west);
163 5 Andrey Golovin
      \begin{scope}[fill opacity=.5,transparency group]
164 5 Andrey Golovin
    \node[thick,draw=black, fill=orange,opacity=0.5,circle,minimum size=1cm, radius=1.5] 
165 5 Andrey Golovin
    at (cu.center) {~} ;
166 5 Andrey Golovin
    \end{scope} 
167 5 Andrey Golovin
     \node at (cu.center){Lig};
168 5 Andrey Golovin
  \end{tikzpicture}
169 5 Andrey Golovin
\end{frame}%
170 6 Andrey Golovin
</code></pre>| !prez-12.png! |
171 5 Andrey Golovin
172 5 Andrey Golovin
173 7 Andrey Golovin
h3. График функции и не только (pgfplot):
174 5 Andrey Golovin
175 4 Andrey Golovin
|_.Код      |_. Результат   |
176 5 Andrey Golovin
|<pre><code>
177 4 Andrey Golovin
\begin{frame}%
178 4 Andrey Golovin
{Конформационное равновесие}
179 4 Andrey Golovin
  \begin{center}
180 4 Andrey Golovin
    \schemestart 
181 4 Andrey Golovin
    \setnodestyle{draw,rectangle,fill=red,minimum size=20pt}
182 4 Andrey Golovin
    \chemfig{P_2} 
183 4 Andrey Golovin
    \arrow{<->>}
184 4 Andrey Golovin
    \setnodestyle{draw,circle,fill=yellow,minimum size=20pt}
185 4 Andrey Golovin
    \chemfig{P_1}
186 4 Andrey Golovin
    \schemestop
187 4 Andrey Golovin
    \hspace{3cm}~\par
188 4 Andrey Golovin
    \vspace{.75cm}
189 4 Andrey Golovin
\begin{tikzpicture}[xscale=1.0,yscale=1.0]
190 4 Andrey Golovin
    %% Pot energy plot
191 4 Andrey Golovin
  \begin{axis}[height=7cm,width=15cm,
192 4 Andrey Golovin
    xmin=-300,xmax=400,ymin=-.2, hide x axis, hide y axis,
193 4 Andrey Golovin
    xlabel=$$, ylabel=$$]
194 4 Andrey Golovin
   \addplot+[raw gnuplot, draw=blue, mark=none, smooth,thick] gnuplot[id=m]{%
195 4 Andrey Golovin
         set xrange [-180:180]; plot 1-0.25*(1+cos(3*pi*x/180))- 0.25*(1+cos(2*pi*x/180)) };
196 4 Andrey Golovin
  \draw[dashed,thick,red,->] (axis cs:-150,.7) parabola bend (axis cs:-70,0.95)(axis cs:0,.7);
197 4 Andrey Golovin
  \addplot[->,thick] coordinates {(-180,0.33) (-150,0.33)};
198 4 Andrey Golovin
  \addplot[->,thick] coordinates {(-180,0.90) (-80,.90)};
199 4 Andrey Golovin
  \addplot[thick] coordinates {(-180,0.90) (-180,.70)};
200 4 Andrey Golovin
  \addplot[thick] coordinates {(-180,0.33) (-180,.52)};
201 4 Andrey Golovin
  \addplot[->,thick] coordinates {(90,0.33) (-120,0.33)};
202 4 Andrey Golovin
  \addplot[->,thick] coordinates {(90,0.00) (5,.00)};
203 4 Andrey Golovin
  \addplot[thick] coordinates {(90,0.33) (90,0.22)};
204 4 Andrey Golovin
  \addplot[thick] coordinates {(90,0) (90,.05)};
205 4 Andrey Golovin
  \node at (axis cs:-180,0.6) {$\Delta E_a$};
206 4 Andrey Golovin
  \node at (axis cs:90,0.16) {$\Delta G$};
207 4 Andrey Golovin
  \node at (axis cs:-140,0.25) {$P_2$};
208 4 Andrey Golovin
  \node at (axis cs:0,-0.1) {$P_1$};
209 4 Andrey Golovin
  \node at (axis cs:200,0.1){%
210 4 Andrey Golovin
  \Large{$\frac{[P_1]}{[P_2]}\sim e^{-\frac{\Delta G}{RT}}
211 4 Andrey Golovin
      $}
212 4 Andrey Golovin
   } ;
213 4 Andrey Golovin
  \node at (axis cs:200,-0.1){%
214 1 Andrey Golovin
  $\frac{1}{100}\sim $ \textit{5 кКал}} ;
215 1 Andrey Golovin
  \node at  (axis cs:-180,0){%
216 1 Andrey Golovin
  \Large{$ k_v \sim e^{-\frac{\Delta E_a}{RT}}$}
217 1 Andrey Golovin
  };
218 1 Andrey Golovin
\end{axis}
219 1 Andrey Golovin
\end{tikzpicture}
220 1 Andrey Golovin
  \end{center}
221 1 Andrey Golovin
\end{frame}%
222 1 Andrey Golovin
</code></pre>| !prez-2.png! |
223 6 Andrey Golovin
224 7 Andrey Golovin
h3. Пример таблицы с указанием выравнивания текста (tabularx):
225 6 Andrey Golovin
226 6 Andrey Golovin
|_.Код      |_. Результат   |
227 6 Andrey Golovin
|<pre><code>
228 6 Andrey Golovin
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
229 6 Andrey Golovin
\newcolumntype{Z}[1]{>{\raggedleft\arraybackslash}p{#1}}
230 6 Andrey Golovin
\newcolumntype{Y}[1]{>{\centering\arraybackslash}p{#1}}
231 6 Andrey Golovin
\newcolumntype{M}{>{$\vcenter\bgroup\hbox\bgroup}c<{\egroup\egroup$}}
232 6 Andrey Golovin
233 6 Andrey Golovin
\begin{frame}%
234 6 Andrey Golovin
\tiny\begin{tabularx}{\textwidth}{P{3cm} P{3cm} P{4.0cm} }
235 6 Andrey Golovin
\hline
236 6 Andrey Golovin
Система&Исследуемый фактор&Результат\\
237 6 Andrey Golovin
\hline
238 6 Andrey Golovin
Четырёх тяжевой  квадруплекс состоящий из  двух G-квартетов с катионом калия в
239 6 Andrey Golovin
центре. & 
240 6 Andrey Golovin
Влияние петель на стабильность G-стебля & G-стебль был стабилен в течении всех
241 6 Andrey Golovin
700 наносекунд наблюдения \\
242 6 Andrey Golovin
\hdashline
243 6 Andrey Golovin
Четырёх тяжевой  квадруплекс состоящий из  двух G-квартетов без катиона в
244 6 Andrey Golovin
центре\textsuperscript{*}  & Роль катиона в стабилизации G-стебля. &
245 6 Andrey Golovin
G-стебель потерял структуру в начале наблюдения \\
246 6 Andrey Golovin
\hdashline
247 6 Andrey Golovin
ЯМР модель с заменой катиона калия на катион натрия.& Влияние параметров
248 6 Andrey Golovin
описания катиона на поведение стабильной структуры 15-ТВА и её геометрию &
249 6 Andrey Golovin
Не замечено значительной разницы в поведении структуры в комплексе с разными
250 6 Andrey Golovin
катионами.\\
251 6 Andrey Golovin
\hdashline
252 6 Andrey Golovin
ЯМР модель без катиона внутри квадруплекса & Влияние стабилизирующего иона на
253 6 Andrey Golovin
структурную стабильность 15-ТВА. & Несмотря на высокую амплитуду флуктуаций,
254 6 Andrey Golovin
модель сохранила квадруплексную структуру. На 72 нс. катион натрия из раствора
255 6 Andrey Golovin
проник в центр квадруплекса через ТТ петли  и стабилизировал молекулу до конца наблюдения.\\
256 6 Andrey Golovin
\hdashline
257 6 Andrey Golovin
ЯМР модель где основание Т9 ориентировано в раствор и не образует стэкинга с
258 6 Andrey Golovin
верхним квартетом (TG(-T) ЯМР) & Способна ли ЯМР модель сохранить структуру если
259 6 Andrey Golovin
только G8 из  TGT петли образует стэкинг с G-квадруплексом?& Аптамер потерял
260 6 Andrey Golovin
структуру квадруплекса, все квартеты потеряли геометрию, не смотря на наличие
261 6 Andrey Golovin
пары Т4-Т13 в стартовой структуре \\
262 6 Andrey Golovin
\hdashline
263 6 Andrey Golovin
РСА модель, где основание Т9 образует стэкинг с G-квартетом (ТG(+T) РСА)& Может
264 6 Andrey Golovin
ли стекинг взаимодействие одного основания сделать РСА модель стабильной? &
265 6 Andrey Golovin
Модель проявила гораздо лучшую стабильность и сохраняла квадруплексную структуру
266 6 Andrey Golovin
в течении 790 нс., в этот момент основания Т4 и Т13 образовали стекинг
267 6 Andrey Golovin
взаимодействие, которое привело к нарушению планарности нижнего квартета и
268 6 Andrey Golovin
квдруплексная геометрия была потеряна\\
269 6 Andrey Golovin
\hline
270 6 Andrey Golovin
\end{tabularx}
271 6 Andrey Golovin
\end{frame}%
272 6 Andrey Golovin
</code></pre>| !table.png! |
273 6 Andrey Golovin
274 7 Andrey Golovin
h3. Пример c визуализацией данных и картинкой на графике (pgfplot):
275 6 Andrey Golovin
276 6 Andrey Golovin
|_.Код      |_. Результат   |
277 6 Andrey Golovin
|<pre><code>
278 6 Andrey Golovin
\begin{frame}%
279 6 Andrey Golovin
{Структуры ЯМР и РСА }
280 6 Andrey Golovin
\begin{tikzpicture}
281 6 Andrey Golovin
    \begin{axis}[
282 6 Andrey Golovin
       xmin=0,ymin=0,     
283 6 Andrey Golovin
       xlabel={время (нс)},
284 6 Andrey Golovin
       ylabel={ СКО РСА (нм)},
285 6 Andrey Golovin
       width=0.45\textwidth, height=8cm,
286 6 Andrey Golovin
tick label style={font=\footnotesize},label style={font=\small}]
287 6 Andrey Golovin
\addplot +[ color=black, mark=none] table [x expr=\thisrow{time}/1000,
288 6 Andrey Golovin
y=rmsd]  {plots/pic5_data.dat};
289 6 Andrey Golovin
\addplot graphics [xmin=100,xmax=900,ymin=0.05,ymax=0.2]{plots/pic5_bitmap.png};
290 6 Andrey Golovin
%\node (1) at (axis cs:500, 0.6) {\includegraphics[width=0.6\pgfplotswidth]{plots/pic_5b_bitmap.png}};
291 6 Andrey Golovin
    \end{axis}
292 6 Andrey Golovin
\end{tikzpicture}
293 6 Andrey Golovin
\begin{tikzpicture}
294 6 Andrey Golovin
    \begin{axis}[
295 6 Andrey Golovin
       xmin=0,ymin=0, ymax=0.9 , 
296 6 Andrey Golovin
       xlabel={время (нс)},
297 6 Andrey Golovin
       yticklabel pos=right,
298 6 Andrey Golovin
       ylabel={ СКО ЯМР (нм)},
299 6 Andrey Golovin
       width=0.45\textwidth, height=8cm,
300 6 Andrey Golovin
tick label style={font=\footnotesize},label style={font=\small}]
301 6 Andrey Golovin
\addplot+[no markers, raw gnuplot,color=orange]  gnuplot {%
302 6 Andrey Golovin
set samples 1000;
303 6 Andrey Golovin
plot "plots/nmrfftestrms.xvg" using ($1/1000):($2) smooth csplines with lines};
304 6 Andrey Golovin
\addplot graphics [xmin=100,xmax=900,ymin=0.6,ymax=0.75]{pic_5b_bitmap.png};
305 6 Andrey Golovin
%    \node (1) at (axis cs:500, 0.2) {\includegraphics[width=0.6\pgfplotswidth]{plots/pic5_bitmap.png}};
306 6 Andrey Golovin
    \end{axis}
307 1 Andrey Golovin
\end{tikzpicture}
308 1 Andrey Golovin
\end{frame}%
309 1 Andrey Golovin
</code></pre>| !prez-26.png! |
310 7 Andrey Golovin
311 7 Andrey Golovin
h3. Рисование чего-то в tikz и циклы в latex:
312 7 Andrey Golovin
313 7 Andrey Golovin
|_.Код      |_. Результат   |
314 7 Andrey Golovin
|<pre><code>
315 7 Andrey Golovin
\pgfplotsset{every axis legend/.append style={
316 7 Andrey Golovin
     at={(0,-0.2)}, anchor=north}}
317 7 Andrey Golovin
     \begin{tikzpicture}[baseline]
318 7 Andrey Golovin
\begin{axis}[
319 7 Andrey Golovin
     legend style={font=\tiny},      
320 7 Andrey Golovin
    xbar,
321 7 Andrey Golovin
    xmin=0,xmax=1, ymin=0,ymax=40,hide x axis, bar width=0.4cm,
322 7 Andrey Golovin
     width=2.5cm, height=5cm
323 7 Andrey Golovin
]
324 7 Andrey Golovin
\addplot [draw=black,fill=orange] coordinates {(1,15.5) (1,20.5) };
325 7 Andrey Golovin
\addlegendentry{Латеральные}
326 7 Andrey Golovin
\addplot [draw=black,fill=green!50!blue] coordinates {(1,20) (1,25) (1,30) (1,35)};
327 7 Andrey Golovin
\addlegendentry{Без петель}
328 7 Andrey Golovin
\addplot [draw=black,fill=orange!50!black] coordinates {(.7,10) (.7,14.5) };
329 7 Andrey Golovin
\addlegendentry{Диагональные}
330 7 Andrey Golovin
\addplot [draw=black,fill=green!50!black] coordinates {(.7,24)};
331 7 Andrey Golovin
\addlegendentry{Пропеллерные}
332 7 Andrey Golovin
\end{axis}
333 7 Andrey Golovin
\end{tikzpicture}
334 7 Andrey Golovin
\tikzstyle{chain} = [thick,orange,>=stealth]
335 7 Andrey Golovin
      \begin{tabular}{M M M M}
336 7 Andrey Golovin
    \begin{tikzpicture}
337 7 Andrey Golovin
    % stupido loopless parallel
338 7 Andrey Golovin
      \coordinate (A) at (0,0); 
339 7 Andrey Golovin
      \coordinate (B) at (1.0,0);
340 7 Andrey Golovin
      \coordinate (C) at (1.5,.5);
341 7 Andrey Golovin
      \coordinate (D) at (.5,.5);
342 7 Andrey Golovin
      \draw[chain,->] ([yshift=-0.1cm]D) -- ([yshift=0.5cm]D);
343 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
344 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
345 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
346 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
347 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
348 7 Andrey Golovin
  }
349 7 Andrey Golovin
      \end{scope}
350 7 Andrey Golovin
   \foreach \k in {A,B,C} {
351 7 Andrey Golovin
      \draw[chain,->] ([yshift=-0.1cm]\k) -- ([yshift=0.5cm]\k);
352 7 Andrey Golovin
  }
353 7 Andrey Golovin
  \end{tikzpicture}%
354 7 Andrey Golovin
           &
355 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
356 7 Andrey Golovin
    \begin{axis}[
357 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
358 7 Andrey Golovin
       %ylabel={N, шт.},
359 7 Andrey Golovin
       xlabel={угол, град},
360 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
361 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
362 7 Andrey Golovin
        plots/acta/11.dist.twist};
363 7 Andrey Golovin
     \end{axis}
364 7 Andrey Golovin
    \end{tikzpicture}%
365 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
366 7 Andrey Golovin
    \begin{axis}[
367 7 Andrey Golovin
       yticklabel pos=right,
368 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
369 7 Andrey Golovin
       %ylabel={N, шт.}, 
370 7 Andrey Golovin
       xlabel={планарность,\AA},
371 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
372 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
373 7 Andrey Golovin
        plots/acta/11.dist.plane};
374 7 Andrey Golovin
     \end{axis}
375 7 Andrey Golovin
    \end{tikzpicture}%
376 7 Andrey Golovin
           &%
377 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.8},baseline]
378 7 Andrey Golovin
    % Basket like diagonal-lateral
379 7 Andrey Golovin
      \coordinate (A) at (0,0); \coordinate (B) at (1.0,0);
380 7 Andrey Golovin
      \coordinate (C) at (1.5,.5); \coordinate (D) at (.5,.5);
381 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]D) -- ([yshift=0.3cm]D);
382 7 Andrey Golovin
      \draw[chain] (C) edge[bend left=90, min distance=.5cm] (D);
383 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
384 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
385 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
386 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
387 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
388 7 Andrey Golovin
      }
389 7 Andrey Golovin
      \end{scope}
390 7 Andrey Golovin
     \foreach \k in {A,B,C} {
391 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]\k) -- ([yshift=0.3cm]\k);
392 7 Andrey Golovin
     }
393 7 Andrey Golovin
     \draw[chain] ([yshift=0.3cm]B) edge[in=90,out=90, min distance=.5cm]
394 7 Andrey Golovin
     ([yshift=0.3cm]D);
395 7 Andrey Golovin
     \draw[chain] (A) edge[bend right=90, min distance=.5cm] (B);
396 7 Andrey Golovin
    \end{tikzpicture}
397 7 Andrey Golovin
    &
398 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
399 7 Andrey Golovin
    \begin{axis}[
400 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
401 7 Andrey Golovin
       %ylabel={N, шт.},
402 7 Andrey Golovin
       xlabel={угол, град},
403 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
404 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
405 7 Andrey Golovin
        plots/acta/3.dist.twist};
406 7 Andrey Golovin
     \end{axis}
407 7 Andrey Golovin
    \end{tikzpicture}%
408 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
409 7 Andrey Golovin
    \begin{axis}[
410 7 Andrey Golovin
       yticklabel pos=right,
411 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
412 7 Andrey Golovin
       %ylabel={N, шт.}, 
413 7 Andrey Golovin
       xlabel={планарность,\AA},
414 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
415 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
416 7 Andrey Golovin
        plots/acta/3.dist.plane};
417 7 Andrey Golovin
     \end{axis}
418 7 Andrey Golovin
    \end{tikzpicture}%
419 7 Andrey Golovin
  \\
420 7 Andrey Golovin
    \begin{tikzpicture} 
421 7 Andrey Golovin
    % propellers
422 7 Andrey Golovin
      \coordinate (A) at (0,0); 
423 7 Andrey Golovin
      \coordinate (B) at (1.0,0);
424 7 Andrey Golovin
      \coordinate (C) at (1.5,.5);
425 7 Andrey Golovin
      \coordinate (D) at (.5,.5);
426 7 Andrey Golovin
      %%%% chains below 
427 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]D) -- ([yshift=0.3cm]D);
428 7 Andrey Golovin
      \draw[chain] ([yshift=0.3cm]C) edge[bend right=20] (D);
429 7 Andrey Golovin
      %%%%% Plains
430 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
431 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
432 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
433 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
434 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
435 7 Andrey Golovin
      }
436 7 Andrey Golovin
      \end{scope}
437 7 Andrey Golovin
      %%%%% Chains above
438 7 Andrey Golovin
      \foreach \k in {A,B,C} {
439 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]\k) -- ([yshift=0.3cm]\k);
440 7 Andrey Golovin
      }
441 7 Andrey Golovin
      \draw[chain] ([yshift=0.3cm]A) edge[bend left=20] (B);
442 7 Andrey Golovin
      \draw[chain] ([yshift=0.3cm]B) edge[bend left=20] (C);
443 7 Andrey Golovin
    \end{tikzpicture}%
444 7 Andrey Golovin
        &
445 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
446 7 Andrey Golovin
    \begin{axis}[
447 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
448 7 Andrey Golovin
       %ylabel={N, шт.},
449 7 Andrey Golovin
       xlabel={угол, град},
450 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
451 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
452 7 Andrey Golovin
        plots/acta/5.dist.twist};
453 7 Andrey Golovin
     \end{axis}
454 7 Andrey Golovin
    \end{tikzpicture}%
455 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
456 7 Andrey Golovin
    \begin{axis}[
457 7 Andrey Golovin
       yticklabel pos=right,
458 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
459 7 Andrey Golovin
       %ylabel={N, шт.}, 
460 7 Andrey Golovin
       xlabel={планарность,\AA},
461 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
462 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
463 7 Andrey Golovin
        plots/acta/5.dist.plane};
464 7 Andrey Golovin
     \end{axis}
465 7 Andrey Golovin
    \end{tikzpicture}%
466 7 Andrey Golovin
       &
467 7 Andrey Golovin
      \begin{tikzpicture}[every node/.style={scale=0.8},baseline]
468 7 Andrey Golovin
  % TBA like
469 7 Andrey Golovin
      \coordinate (A) at (0,0); 
470 7 Andrey Golovin
      \coordinate (B) at (1.0,0);
471 7 Andrey Golovin
      \coordinate (C) at (1.5,.5);
472 7 Andrey Golovin
      \coordinate (D) at (.5,.5);
473 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]D) -- ([yshift=0.3cm]D);
474 7 Andrey Golovin
      \draw[chain] (C) edge[bend left=90, min distance=.5cm] (D);
475 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
476 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
477 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
478 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
479 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
480 7 Andrey Golovin
  }
481 7 Andrey Golovin
      \end{scope}
482 7 Andrey Golovin
   \foreach \k in {A,B,C} {
483 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]\k) -- ([yshift=0.3cm]\k);
484 7 Andrey Golovin
  }
485 7 Andrey Golovin
  \draw[chain] ([yshift=0.3cm]B) edge[out=90,in=90,min distance=.7cm] ([yshift=0.3cm]C);
486 7 Andrey Golovin
  \draw[chain] (A) edge[bend right=90, min distance=.5cm] (B);
487 7 Andrey Golovin
  \end{tikzpicture}%
488 7 Andrey Golovin
  &
489 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
490 7 Andrey Golovin
    \begin{axis}[
491 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
492 7 Andrey Golovin
       %ylabel={N, шт.},
493 7 Andrey Golovin
       xlabel={угол, град},
494 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
495 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
496 7 Andrey Golovin
        plots/acta/1.dist.twist};
497 7 Andrey Golovin
     \end{axis}
498 7 Andrey Golovin
    \end{tikzpicture}%
499 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
500 7 Andrey Golovin
    \begin{axis}[
501 7 Andrey Golovin
       yticklabel pos=right,
502 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
503 7 Andrey Golovin
       %ylabel={N, шт.}, 
504 7 Andrey Golovin
       xlabel={планарность,\AA},
505 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
506 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
507 7 Andrey Golovin
        plots/acta/1.dist.plane};
508 7 Andrey Golovin
     \end{axis}
509 7 Andrey Golovin
    \end{tikzpicture}%
510 7 Andrey Golovin
\\
511 7 Andrey Golovin
        
512 7 Andrey Golovin
    \begin{tikzpicture} 
513 7 Andrey Golovin
      % two propellers 
514 7 Andrey Golovin
      \coordinate (A) at (0,0); 
515 7 Andrey Golovin
      \coordinate (B) at (1.0,0);
516 7 Andrey Golovin
      \coordinate (C) at (1.5,.5);
517 7 Andrey Golovin
      \coordinate (D) at (.5,.5);
518 7 Andrey Golovin
      %%%% chains below 
519 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]D) -- ([yshift=0.3cm]D);
520 7 Andrey Golovin
      %%%%% Plains
521 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
522 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
523 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
524 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
525 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
526 7 Andrey Golovin
      }
527 7 Andrey Golovin
      \end{scope}
528 7 Andrey Golovin
      %%%%% Chains above
529 7 Andrey Golovin
      \foreach \k in {A,B,C} {
530 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]\k) -- ([yshift=0.3cm]\k);
531 7 Andrey Golovin
      }
532 7 Andrey Golovin
      \draw[chain] ([yshift=0.3cm]B) edge[bend left=20] (C);
533 7 Andrey Golovin
      \draw[chain] ([yshift=0.3cm]A) edge[bend left=20] (D);
534 7 Andrey Golovin
    \end{tikzpicture}%
535 7 Andrey Golovin
          &
536 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
537 7 Andrey Golovin
    \begin{axis}[
538 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
539 7 Andrey Golovin
       %ylabel={N, шт.},
540 7 Andrey Golovin
       xlabel={угол, град},
541 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
542 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
543 7 Andrey Golovin
        plots/acta/9.dist.twist};
544 7 Andrey Golovin
     \end{axis}
545 7 Andrey Golovin
    \end{tikzpicture}%
546 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
547 7 Andrey Golovin
    \begin{axis}[
548 7 Andrey Golovin
       yticklabel pos=right,
549 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
550 7 Andrey Golovin
       %ylabel={N, шт.}, 
551 7 Andrey Golovin
       xlabel={планарность,\AA},
552 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
553 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
554 7 Andrey Golovin
        plots/acta/9.dist.plane};
555 7 Andrey Golovin
     \end{axis}
556 7 Andrey Golovin
    \end{tikzpicture}%
557 7 Andrey Golovin
          &%
558 7 Andrey Golovin
    \begin{tikzpicture}
559 7 Andrey Golovin
         % Two lateral 
560 7 Andrey Golovin
      \coordinate (A) at (0,0); 
561 7 Andrey Golovin
      \coordinate (B) at (1.0,0);
562 7 Andrey Golovin
      \coordinate (C) at (1.5,.5);
563 7 Andrey Golovin
      \coordinate (D) at (.5,.5);
564 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]D) -- ([yshift=0.3cm]D);
565 7 Andrey Golovin
      \draw[chain] (C) edge[bend left=90, min distance=.5cm] (D);
566 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
567 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
568 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
569 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
570 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
571 7 Andrey Golovin
  }
572 7 Andrey Golovin
      \end{scope}
573 7 Andrey Golovin
   \foreach \k in {A,B,C} {
574 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]\k) -- ([yshift=0.3cm]\k);
575 7 Andrey Golovin
  }
576 7 Andrey Golovin
  \draw[chain] (A) edge[bend right=90, min distance=.5cm] (B);
577 7 Andrey Golovin
  \end{tikzpicture}%
578 7 Andrey Golovin
  &
579 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
580 7 Andrey Golovin
    \begin{axis}[
581 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
582 7 Andrey Golovin
       %ylabel={N, шт.},
583 7 Andrey Golovin
       xlabel={угол, град},
584 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
585 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
586 7 Andrey Golovin
        plots/acta/6.dist.twist};
587 7 Andrey Golovin
     \end{axis}
588 7 Andrey Golovin
    \end{tikzpicture}%
589 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
590 7 Andrey Golovin
    \begin{axis}[
591 7 Andrey Golovin
       yticklabel pos=right,
592 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
593 7 Andrey Golovin
       %ylabel={N, шт.}, 
594 7 Andrey Golovin
       xlabel={планарность,\AA},
595 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
596 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
597 7 Andrey Golovin
        plots/acta/6.dist.plane};
598 7 Andrey Golovin
     \end{axis}
599 7 Andrey Golovin
    \end{tikzpicture}%
600 7 Andrey Golovin
  \\
601 7 Andrey Golovin
        
602 7 Andrey Golovin
    \begin{tikzpicture}
603 7 Andrey Golovin
    % Basket like
604 7 Andrey Golovin
      \coordinate (A) at (0,0); \coordinate (B) at (1.0,0);
605 7 Andrey Golovin
      \coordinate (C) at (1.5,.5); \coordinate (D) at (.5,.5);
606 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]D) -- ([yshift=0.3cm]D);
607 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
608 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
609 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
610 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
611 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
612 7 Andrey Golovin
      }
613 7 Andrey Golovin
      \end{scope}
614 7 Andrey Golovin
     \foreach \k in {A,B,C} {
615 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]\k) -- ([yshift=0.3cm]\k);
616 7 Andrey Golovin
     }
617 7 Andrey Golovin
     \draw[chain] (A) edge[bend right=70, min distance=.7cm] (C);
618 7 Andrey Golovin
     \draw[chain] ([yshift=0.3cm]B) edge[in=90,out=90, min distance=.5cm]
619 7 Andrey Golovin
     ([yshift=0.3cm]D);
620 7 Andrey Golovin
    \end{tikzpicture}
621 7 Andrey Golovin
    &
622 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
623 7 Andrey Golovin
    \begin{axis}[
624 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
625 7 Andrey Golovin
       %ylabel={N, шт.},
626 7 Andrey Golovin
       xlabel={угол, град},
627 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
628 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
629 7 Andrey Golovin
        plots/acta/8.dist.twist};
630 7 Andrey Golovin
     \end{axis}
631 7 Andrey Golovin
    \end{tikzpicture}%
632 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
633 7 Andrey Golovin
    \begin{axis}[
634 7 Andrey Golovin
       yticklabel pos=right,
635 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
636 7 Andrey Golovin
       %ylabel={N, шт.}, 
637 7 Andrey Golovin
       xlabel={планарность,\AA},
638 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
639 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
640 7 Andrey Golovin
        plots/acta/8.dist.plane};
641 7 Andrey Golovin
     \end{axis}
642 7 Andrey Golovin
    \end{tikzpicture}%
643 7 Andrey Golovin
    
644 7 Andrey Golovin
    &
645 7 Andrey Golovin
      \begin{tikzpicture}
646 7 Andrey Golovin
  % TBA like with propeller
647 7 Andrey Golovin
      \coordinate (A) at (0,0); 
648 7 Andrey Golovin
      \coordinate (B) at (1.0,0);
649 7 Andrey Golovin
      \coordinate (C) at (1.5,.5);
650 7 Andrey Golovin
      \coordinate (D) at (.5,.5);
651 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]D) -- ([yshift=0.3cm]D);
652 7 Andrey Golovin
      \draw[chain] (C) edge[bend left=90, min distance=.5cm] (D);
653 7 Andrey Golovin
      \begin{scope}[opacity=.5,transparency group]
654 7 Andrey Golovin
      \foreach \i in {0cm,0.3cm} {
655 7 Andrey Golovin
          \draw[fill=gray,opacity=0.5] 
656 7 Andrey Golovin
          ([yshift=\i]A) -- ([yshift=\i]B) --
657 7 Andrey Golovin
          ([yshift=\i]C) -- ([yshift=\i]D) -- cycle ;
658 7 Andrey Golovin
      }
659 7 Andrey Golovin
      \end{scope}
660 7 Andrey Golovin
   \foreach \k in {A,B,C} {
661 7 Andrey Golovin
      \draw[chain] ([yshift=-0cm]\k) -- ([yshift=0.3cm]\k);
662 7 Andrey Golovin
     }
663 7 Andrey Golovin
     \draw[chain] ([yshift=0.3cm]B) edge[out=90,in=90,min distance=.7cm] ([yshift=0.3cm]C);
664 7 Andrey Golovin
      \draw[chain] ([yshift=0.3cm]A) edge[bend left=20] (B);
665 7 Andrey Golovin
  \end{tikzpicture}%
666 7 Andrey Golovin
  &
667 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
668 7 Andrey Golovin
    \begin{axis}[
669 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
670 7 Andrey Golovin
       %ylabel={N, шт.},
671 7 Andrey Golovin
       xlabel={угол, град},
672 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
673 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,fill=green!50!white]  table {%
674 7 Andrey Golovin
        plots/acta/2.dist.twist};
675 7 Andrey Golovin
     \end{axis}
676 7 Andrey Golovin
    \end{tikzpicture}%
677 7 Andrey Golovin
    \begin{tikzpicture}[every node/.style={scale=0.3},baseline]
678 7 Andrey Golovin
    \begin{axis}[
679 7 Andrey Golovin
       yticklabel pos=right,
680 7 Andrey Golovin
       xmin=0,ymin=0.0, ybar, ybar, bar width=2pt,tiny,
681 7 Andrey Golovin
       %ylabel={N, шт.}, 
682 7 Andrey Golovin
       xlabel={планарность,\AA},
683 7 Andrey Golovin
       width=0.2\textwidth, height=2.5cm,]
684 7 Andrey Golovin
       \addplot [no markers, raw gnuplot,color=black,fill=red!50!white]  table {%
685 7 Andrey Golovin
        plots/acta/2.dist.plane};
686 7 Andrey Golovin
     \end{axis}
687 7 Andrey Golovin
    \end{tikzpicture}%
688 7 Andrey Golovin
\\
689 7 Andrey Golovin
\end{tabular} 
690 7 Andrey Golovin
</code></pre>| !prez-20.png! |