| 1 |
%% tikz-lake-fig.tex |
| 2 |
%% |
| 3 |
%% Copyright (C) 2016 - 2020 Joseph Stachelek |
| 4 |
%% |
| 5 |
%% This file is part of tikz-lake-fig repository. |
| 6 |
%% |
| 7 |
%% Released under the LaTeX Project Public License v1.3c or later |
| 8 |
%% See http://www.latex-project.org/lppl.txt |
| 9 |
|
| 10 |
|
| 11 |
\ProvidesPackage{tikz-lake-fig}% |
| 12 |
[2020/05/22 The tikz-lake-fig lake drawing package version 1.0] |
| 13 |
|
| 14 |
\PassOptionsToPackage{x11names}{xcolor} |
| 15 |
\usepackage{tikz} |
| 16 |
\usetikzlibrary{decorations.pathmorphing,calc} |
| 17 |
\usepackage{subfiles} |
| 18 |
\usepackage{pbox} |
| 19 |
\usepackage{multirow} |
| 20 |
\usepackage{tabularx} |
| 21 |
\usepackage{colortbl} |
| 22 |
|
| 23 |
\usepackage{array} |
| 24 |
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} |
| 25 |
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} |
| 26 |
|
| 27 |
\def\mystrut(#1,#2){\vrule height #1 depth #2 width 0pt} |
| 28 |
|
| 29 |
\newcolumntype{C}[1]{% |
| 30 |
>{\mystrut(3ex,2ex)\centering}% |
| 31 |
p{#1}% |
| 32 |
<{}} |
| 33 |
|
| 34 |
\newcolumntype{K}[1]{% |
| 35 |
>{\vbox to 5ex\bgroup\vfill\centering}% |
| 36 |
p{#1}% |
| 37 |
<{\egroup}} |
| 38 |
|
| 39 |
% \definecolor{darkgreen}{rgb}{0.13,0.62,0.25} |
| 40 |
\definecolor{darkgreen}{RGB}{23,155,51} |
| 41 |
|
| 42 |
\usepackage{relsize} |
| 43 |
\tikzset{fontscale/.style = {font=\relsize{#1}} |
| 44 |
} |
| 45 |
|
| 46 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 47 |
% \section{lakediagramgreen} |
| 48 |
\def\lakediagramgreen[#1]{ |
| 49 |
\begin{tikzpicture}[scale = #1] |
| 50 |
% https://tex.stackexchange.com/questions/95044/create-diagrams-in-latex-with-tikz |
| 51 |
|
| 52 |
% Define some reference points |
| 53 |
% The figure is drawn a bit bigger, and then clipped to the following dimensions: |
| 54 |
\coordinate (clipping area) at (10, 7); |
| 55 |
\clip (0,0) rectangle (clipping area); |
| 56 |
|
| 57 |
% Next reference points are relative to the lower left corner of the clipping area |
| 58 |
\coordinate (water level) at (0, 6); |
| 59 |
\coordinate (bottom) at (5, 1.3); % (bottom of the pit) |
| 60 |
\coordinate (ground1) at (0, 5); % (left shore) |
| 61 |
\coordinate (ground2) at (10, 5); % (right shore) |
| 62 |
|
| 63 |
% Coordinates of the bigger area really drawn |
| 64 |
\coordinate (lower left) at ([xshift=-5mm, yshift=-5mm] 0,0); |
| 65 |
\coordinate (upper right) at ([xshift=5mm, yshift=5mm] clipping area); |
| 66 |
|
| 67 |
% Draw the water and ripples |
| 68 |
\draw [draw=blue!80!black, decoration={bumps, mirror, segment length=6mm}, decorate, |
| 69 |
bottom color=cyan!60!black, top color=darkgreen!20!white] |
| 70 |
(lower left) rectangle (water level-|upper right); |
| 71 |
|
| 72 |
% Draw the ground |
| 73 |
\draw [draw=brown!30!black, fill=brown] |
| 74 |
(lower left) -- (lower left|-ground1) -- |
| 75 |
(ground1) .. controls ($(ground1)!.3!(bottom)$) and (bottom-|ground1) .. |
| 76 |
(bottom) .. controls (bottom-|ground2) and ($(ground2)!.3!(bottom)$) .. |
| 77 |
(ground2) -- (ground2-|upper right) -- (lower left-|upper right) -- cycle; |
| 78 |
|
| 79 |
% \draw[dotted](0,0) rectangle (clipping area); |
| 80 |
|
| 81 |
% labels |
| 82 |
\draw[>=stealth, ->, line width = 0.7mm] (0, 5.5) -- (3, 5.5) node at (1.5, 4.8) {Inputs}; |
| 83 |
\draw[>=stealth, ->, line width = 0.2mm] (8, 5.5) -- (10, 5.5) node at (8.5, 4.8) {Outputs}; |
| 84 |
|
| 85 |
\end{tikzpicture} |
| 86 |
} |
| 87 |
|
| 88 |
% \section{lakediagramblue} |
| 89 |
\def\lakediagramblue[#1]{ |
| 90 |
\begin{tikzpicture}[scale = #1] |
| 91 |
% https://tex.stackexchange.com/questions/95044/create-diagrams-in-latex-with-tikz |
| 92 |
|
| 93 |
% Define some reference points |
| 94 |
% The figure is drawn a bit bigger, and then clipped to the following dimensions: |
| 95 |
\coordinate (clipping area) at (10, 7); |
| 96 |
\clip (0,0) rectangle (clipping area); |
| 97 |
|
| 98 |
% Next reference points are relative to the lower left corner of the clipping area |
| 99 |
\coordinate (water level) at (0, 6); |
| 100 |
\coordinate (bottom) at (5, 1.3); % (bottom of the pit) |
| 101 |
\coordinate (ground1) at (0, 5); % (left shore) |
| 102 |
\coordinate (ground2) at (10, 5); % (right shore) |
| 103 |
|
| 104 |
% Coordinates of the bigger area really drawn |
| 105 |
\coordinate (lower left) at ([xshift=-5mm, yshift=-5mm] 0,0); |
| 106 |
\coordinate (upper right) at ([xshift=5mm, yshift=5mm] clipping area); |
| 107 |
|
| 108 |
% Draw the water and ripples |
| 109 |
\draw [draw=blue!80!black, decoration={bumps, mirror, segment length=6mm}, decorate, |
| 110 |
bottom color=cyan!60!black, top color=blue!20!white] |
| 111 |
(lower left) rectangle (water level-|upper right); |
| 112 |
|
| 113 |
% Draw the ground |
| 114 |
\draw [draw=brown!30!black, fill=brown] |
| 115 |
(lower left) -- (lower left|-ground1) -- |
| 116 |
(ground1) .. controls ($(ground1)!.3!(bottom)$) and (bottom-|ground1) .. |
| 117 |
(bottom) .. controls (bottom-|ground2) and ($(ground2)!.3!(bottom)$) .. |
| 118 |
(ground2) -- (ground2-|upper right) -- (lower left-|upper right) -- cycle; |
| 119 |
|
| 120 |
% \draw[dotted](0,0) rectangle (clipping area); |
| 121 |
|
| 122 |
% labels |
| 123 |
\draw[>=stealth, ->, line width = 0.5mm] (0, 5.5) -- (3, 5.5) node at (1.5, 4.8) {Inputs}; |
| 124 |
\draw[>=stealth, ->, line width = 0.5mm] (8, 5.5) -- (10, 5.5) node at (8.5, 4.8) {Outputs}; |
| 125 |
|
| 126 |
\end{tikzpicture} |
| 127 |
} |
| 128 |
|
| 129 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 130 |
% \section{isolated} |
| 131 |
\def\isolated[#1]{ |
| 132 |
\begin{tikzpicture}[scale = #1] |
| 133 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan] plot (\x:1+rnd*0.5); |
| 134 |
\node[fontscale=2.5] at (0, 0) {Isolated}; |
| 135 |
\end{tikzpicture} |
| 136 |
} |
| 137 |
|
| 138 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 139 |
|
| 140 |
% \section{headwater} |
| 141 |
\def\headwater[#1]{ |
| 142 |
\begin{tikzpicture}[scale = #1] |
| 143 |
\draw [-,ultra thick, cyan] (0,0) to [out=90,in=0] (0.2,-2) to [out=180,in=90] (-1,-3); |
| 144 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan] (0,3) plot (\x:1+rnd*0.5); |
| 145 |
\node[fontscale=2.5] at (0, 0) {Headwater}; |
| 146 |
\end{tikzpicture} |
| 147 |
} |
| 148 |
|
| 149 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 150 |
|
| 151 |
% \section{primary} |
| 152 |
\def\primary[#1]{ |
| 153 |
\begin{tikzpicture}[scale = #1] |
| 154 |
\draw [-,ultra thick, cyan] (-1,3) to [out=270,in=180] (0.2,2) to [out=0,in=90] (0,0); |
| 155 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan] (0,-3) plot (\x:1+rnd*0.5); |
| 156 |
\node[fontscale=2.5] at (0, 0) {Primary}; |
| 157 |
\end{tikzpicture} |
| 158 |
} |
| 159 |
|
| 160 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 161 |
|
| 162 |
% \section{secondary} |
| 163 |
\def\secondary[#1]{ |
| 164 |
\begin{tikzpicture}[scale = #1] |
| 165 |
\draw [-,ultra thick, cyan] (-1,3) to [out=270,in=180] (0.2,2) to [out=0,in=90] (0,0.3) to [out=90,in=0] (0,-1) to [out=90,in=0] (0.2,-2) to [out=180,in=90] (-1,-3); |
| 166 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=20] plot (\x:0.5+rnd*0.25); |
| 167 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=-50] plot (\x:0.8+rnd*0.5); |
| 168 |
\node[fontscale=2.5] at (0,-1.7) {Connected}; |
| 169 |
\end{tikzpicture} |
| 170 |
} |
| 171 |
|
| 172 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 173 |
|
| 174 |
% \section{secondarypluswatershed} |
| 175 |
\def\secondarypluswatershed[#1]{ |
| 176 |
\begin{tikzpicture}[scale = #1] |
| 177 |
%\draw[step=1cm,gray,very thin] (-3,-2) grid (3,3); |
| 178 |
|
| 179 |
% iws |
| 180 |
\draw[cyan,ultra thick,dashed] % |
| 181 |
(-1.1,-1.6) to % |
| 182 |
(-1.5, 0.2) to % |
| 183 |
% (-3, 7.5) to % |
| 184 |
(-1.9, 2.3) to % |
| 185 |
(-1.1, 3.1) to % |
| 186 |
(1.1, 3.1) to % |
| 187 |
(1.9, 2.3) to % |
| 188 |
% (3, 7.5) to % |
| 189 |
(1.5, 0.2) to % |
| 190 |
(1.1, -1.6); |
| 191 |
|
| 192 |
\draw [-,ultra thick, cyan] (-1,3) to [out=270,in=180] (0.2,2) to [out=0,in=90] (0,0.3) to [out=90,in=0] (0,-1) to [out=90,in=0] (0.2,-2) to [out=180,in=90] (-1,-3); |
| 193 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=20] plot (\x:0.5+rnd*0.25); |
| 194 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=-50] plot (\x:0.8+rnd*0.5); |
| 195 |
\node[fontscale=2.5] at (0,-1.7) {Embedded}; |
| 196 |
\end{tikzpicture} |
| 197 |
} |
| 198 |
|
| 199 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 200 |
|
| 201 |
% \section{connectivitydiagram} |
| 202 |
\def\connectivitydiagram[#1]{ |
| 203 |
\begin{minipage}[c]{0.23\textwidth} |
| 204 |
\secondary[#1] |
| 205 |
\end{minipage} |
| 206 |
\begin{minipage}[c]{0.2\textwidth} |
| 207 |
\primary[#1/1.2] |
| 208 |
\end{minipage} |
| 209 |
\begin{minipage}[c]{0.2\textwidth} |
| 210 |
\headwater[#1/1.2] |
| 211 |
\end{minipage} |
| 212 |
\begin{minipage}[c]{0.2\textwidth} |
| 213 |
\isolated[#1/1.2] |
| 214 |
\end{minipage} |
| 215 |
} |
| 216 |
|
| 217 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 218 |
% \section{secondaryprofile} |
| 219 |
\def\secondaryprofile[#1]#2{ |
| 220 |
\begin{tikzpicture}[scale = #1] |
| 221 |
\draw [-,line width = 5, #2!100!black] (0.9,0) to [out=0,in=180] (1.55,0); |
| 222 |
\draw [-,line width = 5, dashed, #2!100!black] (5.5,0) to [out=0,in=180] (6.2,0); |
| 223 |
% \node at (2, 1) {Secondary}; |
| 224 |
\fill[ |
| 225 |
top color=#2!100, |
| 226 |
bottom color=#2!40, |
| 227 |
shading=axis, |
| 228 |
opacity=0.45 |
| 229 |
] |
| 230 |
(0,0) circle (1cm and 0.25cm); |
| 231 |
\fill[ |
| 232 |
left color=#2!50!black, |
| 233 |
right color=#2!50!black, |
| 234 |
middle color=#2!100, |
| 235 |
shading=axis, |
| 236 |
opacity=0.25 |
| 237 |
] |
| 238 |
(1,0) {[rounded corners=45pt] -- (0,-2)} -- (-1,0) arc (180:360:1cm and 0.25cm); |
| 239 |
|
| 240 |
\fill[ |
| 241 |
top color=#2!100, |
| 242 |
bottom color=#2!40, |
| 243 |
shading=axis, |
| 244 |
opacity=0.45, |
| 245 |
xshift=100 |
| 246 |
] |
| 247 |
(0,0) circle (2cm and 0.5cm); |
| 248 |
\fill[ |
| 249 |
left color=#2!50!black, |
| 250 |
right color=#2!50!black, |
| 251 |
middle color=#2!100, |
| 252 |
shading=axis, |
| 253 |
opacity=0.25, |
| 254 |
xshift=100 |
| 255 |
] |
| 256 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 257 |
\end{tikzpicture} |
| 258 |
} |
| 259 |
|
| 260 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 261 |
% \section{secondaryprofileflatequal} |
| 262 |
\def\secondaryprofileflatequal[#1]#2{ |
| 263 |
\begin{tikzpicture}[scale = #1] |
| 264 |
\draw [fill=#2, ultra thick] (0.1,-.3) rectangle (1.7,0.1); |
| 265 |
\draw [fill=#2, ultra thick] (5.3,0.1) rectangle (6.2,-0.3); |
| 266 |
% \node at (2, 1) {Secondary}; |
| 267 |
\draw |
| 268 |
[fill=#2, |
| 269 |
ultra thick, |
| 270 |
xshift=-50 |
| 271 |
] |
| 272 |
(0,0) circle (2cm and 0.5cm); |
| 273 |
\draw |
| 274 |
[fill=#2, |
| 275 |
ultra thick, |
| 276 |
xshift=-50 |
| 277 |
] |
| 278 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 279 |
|
| 280 |
\draw |
| 281 |
[fill = #2, |
| 282 |
ultra thick, |
| 283 |
xshift=100 |
| 284 |
] |
| 285 |
(0,0) circle (2cm and 0.5cm); |
| 286 |
\draw |
| 287 |
[fill = #2, |
| 288 |
ultra thick, |
| 289 |
xshift=100 |
| 290 |
] |
| 291 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 292 |
\end{tikzpicture} |
| 293 |
} |
| 294 |
|
| 295 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 296 |
% \section{primaryprofileflatequal} |
| 297 |
\def\primaryprofileflatequal[#1]#2{ |
| 298 |
\begin{tikzpicture}[scale = #1] |
| 299 |
\draw [fill=#2, ultra thick] (1.8,-.3) rectangle (3.2,0.1); |
| 300 |
\draw [fill=#2, ultra thick] (-1.8,0.1) rectangle (-3.2,-0.3); |
| 301 |
% \node at (2, 1) {Secondary}; |
| 302 |
\draw |
| 303 |
[fill=#2, |
| 304 |
ultra thick |
| 305 |
] |
| 306 |
(0,0) circle (2cm and 0.5cm); |
| 307 |
\clip (-2,-3) rectangle (2,0); |
| 308 |
\draw |
| 309 |
[fill=#2, |
| 310 |
ultra thick |
| 311 |
] |
| 312 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 313 |
|
| 314 |
\end{tikzpicture} |
| 315 |
} |
| 316 |
|
| 317 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 318 |
% \section{headwaterprofileflatequal} |
| 319 |
\def\headwaterprofileflatequal[#1]#2{ |
| 320 |
\begin{tikzpicture}[scale = #1] |
| 321 |
\draw [fill=#2, ultra thick] (1.8,-.3) rectangle (3.2,0.1); |
| 322 |
% \node at (2, 1) {Secondary}; |
| 323 |
\draw |
| 324 |
[fill=#2, |
| 325 |
ultra thick |
| 326 |
] |
| 327 |
(0,0) circle (2cm and 0.5cm); |
| 328 |
\clip (-2,-3) rectangle (2,0); |
| 329 |
\draw |
| 330 |
[fill=#2, |
| 331 |
ultra thick |
| 332 |
] |
| 333 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 334 |
|
| 335 |
\end{tikzpicture} |
| 336 |
} |
| 337 |
|
| 338 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 339 |
% \section{isolatedprofileflatequal} |
| 340 |
\def\isolatedprofileflatequal[#1]#2{ |
| 341 |
\begin{tikzpicture}[scale = #1] |
| 342 |
\draw |
| 343 |
[fill=#2, |
| 344 |
ultra thick |
| 345 |
] |
| 346 |
(0,0) circle (2cm and 0.5cm); |
| 347 |
\clip (-2,-3) rectangle (2,0); |
| 348 |
\draw |
| 349 |
[fill=#2, |
| 350 |
ultra thick |
| 351 |
] |
| 352 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 353 |
|
| 354 |
\end{tikzpicture} |
| 355 |
} |
| 356 |
|
| 357 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 358 |
% \section{headwaterprofile} |
| 359 |
\def\headwaterprofile[#1]#2{ |
| 360 |
\begin{tikzpicture}[scale = #1] |
| 361 |
\draw [-,line width = 5, #2!100!black] (1.95,0) to [out=0,in=180] (2.7,0); |
| 362 |
% \node at (0.4, 1) {Headwater}; |
| 363 |
\fill[ |
| 364 |
top color=#2!100, |
| 365 |
bottom color=#2!40, |
| 366 |
shading=axis, |
| 367 |
opacity=0.45 |
| 368 |
] |
| 369 |
(0,0) circle (2cm and 0.5cm); |
| 370 |
\fill[ |
| 371 |
left color=#2!50!black, |
| 372 |
right color=#2!50!black, |
| 373 |
middle color=#2!100, |
| 374 |
shading=axis, |
| 375 |
opacity=0.25 |
| 376 |
] |
| 377 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 378 |
\end{tikzpicture} |
| 379 |
} |
| 380 |
|
| 381 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 382 |
% \section{primaryprofile} |
| 383 |
\def\primaryprofile[#1]#2{ |
| 384 |
\begin{tikzpicture}[scale = #1] |
| 385 |
\draw [-,line width = 5, #2!100!black] (-2,0) to [out=0,in=180] (-2.7,0); |
| 386 |
\draw [-,line width = 5, dashed, #2!100!black] (2,0) to [out=0,in=180] (2.7,0); |
| 387 |
% \node at (0.4, 1) {Primary}; |
| 388 |
\fill[ |
| 389 |
top color=#2!100, |
| 390 |
bottom color=#2!40, |
| 391 |
shading=axis, |
| 392 |
opacity=0.45 |
| 393 |
] |
| 394 |
(0,0) circle (2cm and 0.5cm); |
| 395 |
\fill[ |
| 396 |
left color=#2!50!black, |
| 397 |
right color=#2!50!black, |
| 398 |
middle color=#2!100, |
| 399 |
shading=axis, |
| 400 |
opacity=0.25 |
| 401 |
] |
| 402 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 403 |
\end{tikzpicture} |
| 404 |
} |
| 405 |
|
| 406 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 407 |
% \section{isolatedprofile} |
| 408 |
\def\isolatedprofile[#1]#2{ |
| 409 |
\begin{tikzpicture}[scale = #1] |
| 410 |
\fill[ |
| 411 |
top color=#2!100, |
| 412 |
bottom color=#2!40, |
| 413 |
shading=axis, |
| 414 |
opacity=0.45 |
| 415 |
] |
| 416 |
(0,0) circle (2cm and 0.5cm); |
| 417 |
\fill[ |
| 418 |
left color=#2!50!black, |
| 419 |
right color=#2!50!black, |
| 420 |
middle color=#2!100, |
| 421 |
shading=axis, |
| 422 |
opacity=0.25 |
| 423 |
] |
| 424 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 425 |
\end{tikzpicture} |
| 426 |
} |
| 427 |
|
| 428 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 429 |
% \section{primaryprofileplus} |
| 430 |
\def\primaryprofileplus{ |
| 431 |
\begin{tikzpicture}[scale = 0.8] |
| 432 |
\draw [-,line width=3pt, cyan!40] (-2,0) to [out=0,in=180] (-3.25,0); |
| 433 |
\draw [-,thick, dashed, darkgreen!40] (2,0) to [out=0,in=180] (3.25,0); |
| 434 |
\node at (0.2, 1) {Primary}; |
| 435 |
\fill[ |
| 436 |
top color=darkgreen!100, |
| 437 |
bottom color=darkgreen!40, |
| 438 |
shading=axis, |
| 439 |
opacity=0.45 |
| 440 |
] |
| 441 |
(0,0) circle (2cm and 0.5cm); |
| 442 |
\fill[ |
| 443 |
left color=darkgreen!50!black, |
| 444 |
right color=darkgreen!50!black, |
| 445 |
middle color=darkgreen!100, |
| 446 |
shading=axis, |
| 447 |
opacity=0.25 |
| 448 |
] |
| 449 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 450 |
\end{tikzpicture} |
| 451 |
} |
| 452 |
|
| 453 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 454 |
% \section{secondaryprofileplus} |
| 455 |
\def\secondaryprofileplus{ |
| 456 |
\begin{tikzpicture}[scale = 0.8] |
| 457 |
\draw [-,line width=3pt, cyan!40] (-1,0) to [out=0,in=180] (-2.25,0); |
| 458 |
\draw [-,line width=3pt, cyan!40] (1,0) to [out=0,in=180] (2.25,0); |
| 459 |
\draw [-,line width=3pt, dashed, cyan!40] (6,0) to [out=0,in=180] (7.25,0); |
| 460 |
\node at (2, 1) {Secondary}; |
| 461 |
\fill[ |
| 462 |
top color=cyan!100, |
| 463 |
bottom color=cyan!40, |
| 464 |
shading=axis, |
| 465 |
opacity=0.45 |
| 466 |
] |
| 467 |
(0,0) circle (1cm and 0.25cm); |
| 468 |
\fill[ |
| 469 |
left color=cyan!50!black, |
| 470 |
right color=cyan!50!black, |
| 471 |
middle color=cyan!100, |
| 472 |
shading=axis, |
| 473 |
opacity=0.25 |
| 474 |
] |
| 475 |
(1,0) {[rounded corners=45pt] -- (0,-2)} -- (-1,0) arc (180:360:1cm and 0.25cm); |
| 476 |
|
| 477 |
\fill[ |
| 478 |
top color=cyan!100, |
| 479 |
bottom color=cyan!40, |
| 480 |
shading=axis, |
| 481 |
opacity=0.45, |
| 482 |
xshift=120 |
| 483 |
] |
| 484 |
(0,0) circle (2cm and 0.5cm); |
| 485 |
\fill[ |
| 486 |
left color=cyan!50!black, |
| 487 |
right color=cyan!50!black, |
| 488 |
middle color=cyan!100, |
| 489 |
shading=axis, |
| 490 |
opacity=0.25, |
| 491 |
xshift=120 |
| 492 |
] |
| 493 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 494 |
\end{tikzpicture} |
| 495 |
} |
| 496 |
|
| 497 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 498 |
% \section{primaryprofileblue} |
| 499 |
\def\primaryprofileblue{ |
| 500 |
\begin{tikzpicture}[scale = 0.8] |
| 501 |
\draw [-,line width=5pt, cyan!40] (-2,0) to [out=0,in=180] (-3.25,0); |
| 502 |
\draw [-,line width=5pt, dashed, cyan!40] (2,0) to [out=0,in=180] (3.25,0); |
| 503 |
\node at (0.2, 1) {Low retention}; |
| 504 |
\fill[ |
| 505 |
top color=cyan!100, |
| 506 |
bottom color=cyan!40, |
| 507 |
shading=axis, |
| 508 |
opacity=0.45 |
| 509 |
] |
| 510 |
(0,0) circle (2cm and 0.5cm); |
| 511 |
\fill[ |
| 512 |
left color=cyan!50!black, |
| 513 |
right color=cyan!50!black, |
| 514 |
middle color=cyan!100, |
| 515 |
shading=axis, |
| 516 |
opacity=0.25 |
| 517 |
] |
| 518 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 519 |
\end{tikzpicture} |
| 520 |
} |
| 521 |
|
| 522 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 523 |
% \section{primaryprofilegreen} |
| 524 |
\def\primaryprofilegreen{ |
| 525 |
\begin{tikzpicture}[scale = 0.8] |
| 526 |
\draw [-,line width=5pt, cyan!40] (-2,0) to [out=0,in=180] (-3.25,0); |
| 527 |
\draw [-,thick, dashed, darkgreen!40] (2,0) to [out=0,in=180] (3.25,0); |
| 528 |
\node at (0.2, 1) {High retention}; |
| 529 |
\fill[ |
| 530 |
top color=darkgreen!100, |
| 531 |
bottom color=darkgreen!40, |
| 532 |
shading=axis, |
| 533 |
opacity=0.45 |
| 534 |
] |
| 535 |
(0,0) circle (2cm and 0.5cm); |
| 536 |
\fill[ |
| 537 |
left color=darkgreen!50!black, |
| 538 |
right color=darkgreen!50!black, |
| 539 |
middle color=darkgreen!100, |
| 540 |
shading=axis, |
| 541 |
opacity=0.25 |
| 542 |
] |
| 543 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 544 |
\end{tikzpicture} |
| 545 |
} |
| 546 |
|
| 547 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 548 |
% \section{isolatedflux} |
| 549 |
\def\isolatedflux[#1]#2{ |
| 550 |
\begin{tikzpicture}[scale = #1] |
| 551 |
\node at (1.5, 1) {#2}; |
| 552 |
|
| 553 |
\pgfsetarrowsend{latex} |
| 554 |
\pgfsetlinewidth{1ex} |
| 555 |
|
| 556 |
\node at (3, 5) {Evaporation}; |
| 557 |
\pgfpathmoveto{\pgfpoint{0cm}{1cm}} |
| 558 |
\pgfpathlineto{\pgfpoint{0cm}{4cm}} |
| 559 |
\pgfusepath{stroke} |
| 560 |
|
| 561 |
\node at (-3, 5) {Precipitation}; |
| 562 |
\pgfpathmoveto{\pgfpoint{-1cm}{4cm}} |
| 563 |
\pgfpathlineto{\pgfpoint{-1cm}{1cm}} |
| 564 |
\pgfusepath{stroke} |
| 565 |
|
| 566 |
\fill[ |
| 567 |
top color=cyan!100, |
| 568 |
bottom color=cyan!40, |
| 569 |
shading=axis, |
| 570 |
opacity=0.45 |
| 571 |
] |
| 572 |
(0,0) circle (2cm and 0.5cm); |
| 573 |
\fill[ |
| 574 |
left color=cyan!50!black, |
| 575 |
right color=cyan!50!black, |
| 576 |
middle color=cyan!100, |
| 577 |
shading=axis, |
| 578 |
opacity=0.25 |
| 579 |
] |
| 580 |
(2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 581 |
\end{tikzpicture} |
| 582 |
} |
| 583 |
|
| 584 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 585 |
% \section{isolatedwireframe} |
| 586 |
\def\isolatedwireframe[#1]{ |
| 587 |
\begin{tikzpicture}[scale = #1] |
| 588 |
|
| 589 |
% \draw[step=1cm,gray,very thin] (-4,-3) grid (4,4); |
| 590 |
|
| 591 |
\draw (0,0) circle (2cm and 0.5cm); |
| 592 |
\draw (2,0) {[rounded corners=45pt] -- (0,-3)} -- (-2,0) arc (180:360:2cm and 0.5cm); |
| 593 |
|
| 594 |
\pgfsetarrowsend{latex} |
| 595 |
\pgfsetlinewidth{1ex} |
| 596 |
|
| 597 |
\node[rotate=-90] at (0.6, 2){Evaporation}; |
| 598 |
\node[rotate=-90] at (-0.6, 2){Precipitation}; |
| 599 |
\node at (1.5, -2.1){Groundwater}; |
| 600 |
\node at (-1.5, -2.1){Groundwater}; |
| 601 |
|
| 602 |
|
| 603 |
% GW out |
| 604 |
\pgfpathmoveto{\pgfpoint{1cm}{-1.5cm}} |
| 605 |
\pgfpathlineto{\pgfpoint{2cm}{-2cm}} |
| 606 |
\pgfusepath{stroke} |
| 607 |
|
| 608 |
% GW in |
| 609 |
\pgfpathmoveto{\pgfpoint{-2cm}{-2cm}} |
| 610 |
\pgfpathlineto{\pgfpoint{-1cm}{-1.5cm}} |
| 611 |
\pgfusepath{stroke} |
| 612 |
|
| 613 |
% SW out |
| 614 |
% \node at (3, -0.5){Outflow}; |
| 615 |
% \pgfpathmoveto{\pgfpoint{2.2cm}{0cm}} |
| 616 |
% \pgfpathlineto{\pgfpoint{4cm}{0cm}} |
| 617 |
% \pgfusepath{stroke} |
| 618 |
|
| 619 |
% SW in |
| 620 |
% \node at (-3, -0.5){Inflow}; |
| 621 |
% \pgfpathmoveto{\pgfpoint{-4cm}{0cm}} |
| 622 |
% \pgfpathlineto{\pgfpoint{-2.2cm}{0cm}} |
| 623 |
% \pgfusepath{stroke} |
| 624 |
|
| 625 |
% Runoff in |
| 626 |
\node at (-3, 0.4){Runoff}; |
| 627 |
\pgfpathmoveto{\pgfpoint{-3cm}{0cm}} |
| 628 |
\pgfpathlineto{\pgfpoint{-2.2cm}{0cm}} |
| 629 |
\pgfusepath{stroke} |
| 630 |
|
| 631 |
\pgfpathmoveto{\pgfpoint{0.26cm}{1cm}} |
| 632 |
\pgfpathlineto{\pgfpoint{0.26cm}{3cm}} |
| 633 |
\pgfusepath{stroke} |
| 634 |
|
| 635 |
\pgfpathmoveto{\pgfpoint{-0.3cm}{3cm}} |
| 636 |
\pgfpathlineto{\pgfpoint{-0.3cm}{1cm}} |
| 637 |
\pgfusepath{stroke} |
| 638 |
|
| 639 |
\end{tikzpicture} |
| 640 |
} |
| 641 |
|
| 642 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 643 |
% \section{secondarywireframe} |
| 644 |
\def\secondarywireframe[#1]{ |
| 645 |
\scalebox{#1}{% |
| 646 |
\begin{tikzpicture} |
| 647 |
|
| 648 |
% \draw[step=1cm,gray,very thin] (-4,-3) grid (7,4); |
| 649 |
|
| 650 |
\draw [-,line width=3pt] (0,0) to [out=0,in=180] (1.25,0); |
| 651 |
\draw (-1,0) circle (1cm and 0.25cm); |
| 652 |
\draw (0,0) {[rounded corners=45pt] -- (-1,-2)} -- (-2,0) arc (180:360:1cm and 0.25cm); |
| 653 |
\draw[xshift=120] (-1,0) circle (2cm and 0.5cm); |
| 654 |
\draw[xshift=120] (1,0) {[rounded corners=45pt] -- (-1,-3)} -- (-3,0) arc (180:360:2cm and 0.5cm); |
| 655 |
|
| 656 |
\pgfsetarrowsend{latex} |
| 657 |
\pgfsetlinewidth{1ex} |
| 658 |
|
| 659 |
% GW out |
| 660 |
\node at (4.9, -2.1){Groundwater}; |
| 661 |
\pgfpathmoveto{\pgfpoint{4.2cm}{-1.5cm}} |
| 662 |
\pgfpathlineto{\pgfpoint{5.2cm}{-2cm}} |
| 663 |
\pgfusepath{stroke} |
| 664 |
|
| 665 |
% GW in |
| 666 |
\node at (1.5, -2.1){Groundwater}; |
| 667 |
\pgfpathmoveto{\pgfpoint{1.2cm}{-2cm}} |
| 668 |
\pgfpathlineto{\pgfpoint{2.2cm}{-1.5cm}} |
| 669 |
\pgfusepath{stroke} |
| 670 |
|
| 671 |
% SW out |
| 672 |
\node at (5.6, -0.5){Outflow}; |
| 673 |
\pgfpathmoveto{\pgfpoint{5.2cm}{0cm}} |
| 674 |
\pgfpathlineto{\pgfpoint{7cm}{0cm}} |
| 675 |
\pgfusepath{stroke} |
| 676 |
|
| 677 |
% SW in |
| 678 |
\node at (-2.3, -0.5){Inflow}; |
| 679 |
\pgfpathmoveto{\pgfpoint{-3.4cm}{0cm}} |
| 680 |
\pgfpathlineto{\pgfpoint{-2cm}{0cm}} |
| 681 |
\pgfusepath{stroke} |
| 682 |
|
| 683 |
% Runoff in |
| 684 |
\node at (-2.3, 1){Runoff}; |
| 685 |
\pgfpathmoveto{\pgfpoint{-2.8cm}{0.6cm}} |
| 686 |
\pgfpathlineto{\pgfpoint{-2cm}{0.6cm}} |
| 687 |
\pgfusepath{stroke} |
| 688 |
|
| 689 |
% Evaporation |
| 690 |
\node[rotate=-90] at (3.7, 2){Evaporation}; |
| 691 |
\pgfpathmoveto{\pgfpoint{3.36cm}{1cm}} |
| 692 |
\pgfpathlineto{\pgfpoint{3.36cm}{3cm}} |
| 693 |
\pgfusepath{stroke} |
| 694 |
|
| 695 |
% Precip |
| 696 |
\node[rotate=-90] at (2.4, 2){Precipitation}; |
| 697 |
\pgfpathmoveto{\pgfpoint{2.8cm}{3cm}} |
| 698 |
\pgfpathlineto{\pgfpoint{2.8cm}{1cm}} |
| 699 |
\pgfusepath{stroke} |
| 700 |
|
| 701 |
\end{tikzpicture} |
| 702 |
} |
| 703 |
} |
| 704 |
|
| 705 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 706 |
|
| 707 |
% \section{watershedconnectivity} |
| 708 |
% See Soranno et al., 2015, Plos One |
| 709 |
\def\watershedconnectivity[#1]{ |
| 710 |
\begin{columns} |
| 711 |
|
| 712 |
\begin{column}{0.7\textwidth} |
| 713 |
\begin{tikzpicture}[scale = #1] |
| 714 |
%\draw[step=1cm,gray,very thin] (-4,-2) grid (4,9); |
| 715 |
|
| 716 |
% streamlines |
| 717 |
% lake 3 |
| 718 |
% center |
| 719 |
\draw [-,ultra thick, cyan] (-0.6, 3.2) to [out=270,in=180] (0.2,2) to [out=0,in=90] (0,0); |
| 720 |
\draw [-,ultra thick, cyan] (0.2, 3.2) to [out=270,in=90] (-0.1,2.2) to [out=0,in=180] (0.2,2) to [out=0,in=90] (0,0); |
| 721 |
% right |
| 722 |
\draw [-,ultra thick, cyan] (2.2,3.5) to [out=90,in=0] (1.1,1.1) to [out=270,in=90] (0,0); |
| 723 |
% left |
| 724 |
\draw [-,ultra thick, cyan] (-1.9, 2) to [out=270,in=90] (-1.1,1.1) to [out=270,in=90] (0,0); |
| 725 |
|
| 726 |
% lake 2 |
| 727 |
\draw [-,ultra thick, darkgreen] % |
| 728 |
(-0.3,6.5) to % |
| 729 |
[out=270,in=90] (0.5, 4.9) to % |
| 730 |
[out=270,in=90] (0,4); |
| 731 |
|
| 732 |
% lake 1 |
| 733 |
\draw [-,ultra thick, yellow] % |
| 734 |
(0.3, 7.8) to % |
| 735 |
[out=90,in=270] (1.2, 8.2); |
| 736 |
|
| 737 |
\draw [-,ultra thick, yellow] % |
| 738 |
(0.3, 8) to % |
| 739 |
[out=90,in=270] (0, 8.5) to % |
| 740 |
[out=90,in=270] (0.5, 9); |
| 741 |
|
| 742 |
\draw [-,ultra thick, yellow] % |
| 743 |
(-0.4, 7.5) to % |
| 744 |
[out=90,in=270] (-0.6, 8.5) to % |
| 745 |
[out=90,in=270] (-1.5, 9); |
| 746 |
|
| 747 |
\draw [-,ultra thick, yellow] % |
| 748 |
(-0.4, 7.3) to % |
| 749 |
[out=90,in=270] (-1.5, 8); |
| 750 |
|
| 751 |
% lakes |
| 752 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan] (0,-3) plot (\x:1.1+rnd*0.5); |
| 753 |
\node at (0, 0) {Lake 3}; |
| 754 |
|
| 755 |
\draw[darkgreen, ultra thick, domain=0:350, smooth cycle, fill=darkgreen, yshift=4cm] (0,-3) plot (\x:0.7+rnd*0.5); |
| 756 |
\node at (0, 4) {Lake 2}; |
| 757 |
|
| 758 |
\draw[yellow, ultra thick, domain=0:350, smooth cycle, yshift=7cm, fill=yellow] (0,-3) plot (\x:1.1+rnd*0.5); |
| 759 |
\node at (0, 7) {Lake 1}; |
| 760 |
|
| 761 |
% iws |
| 762 |
\draw[yellow,ultra thick,dashed] % |
| 763 |
(-0.2, 5.6) to % |
| 764 |
(-1.1, 6.2) to % |
| 765 |
(-3.05, 7.5) to % |
| 766 |
(-1.9, 9) to % |
| 767 |
(1.9, 9) to % |
| 768 |
(3.05, 7.5) to % |
| 769 |
(1.1, 6.2) to % |
| 770 |
(0.2, 5.6); |
| 771 |
|
| 772 |
\draw[darkgreen,ultra thick,dashed] % |
| 773 |
(-0.8, 3.4) to % |
| 774 |
(-1.5, 4.2) to % |
| 775 |
(-3, 7.5) to % |
| 776 |
(-1.1, 6.2) to % |
| 777 |
(-0.5, 5.6) to (0.5, 5.6) to% |
| 778 |
(1.1, 6.2) to % |
| 779 |
(3, 7.5) to % |
| 780 |
(1.5, 4.2) to % |
| 781 |
(0.8, 3.4); |
| 782 |
|
| 783 |
\draw[cyan,ultra thick,dashed] % |
| 784 |
(-1.1,-0.4) to % |
| 785 |
(-1.5, 0.2) to % |
| 786 |
(-3, 7.5) to % |
| 787 |
(-1.1, 6.2) to % |
| 788 |
(-0.5, 5.6) to (0.5, 5.6) to % |
| 789 |
(1.1, 6.2) to % |
| 790 |
(3, 7.5) to % |
| 791 |
(1.5, 0.2) to (1.1, -0.4); |
| 792 |
|
| 793 |
\draw [cyan, thick, decorate, decoration={brace,amplitude=10pt,mirror,raise=4pt},yshift=0pt, align=center, anchor=center] |
| 794 |
(3,-1.2) -- (3,7.2) node [cyan,midway,xshift=1.1cm] {\footnotesize |
| 795 |
LWS\\Lake 3}; |
| 796 |
\draw [cyan, thick, decorate,decoration={brace,amplitude=10pt,mirror,raise=4pt},yshift=0pt, align=center, anchor=center] |
| 797 |
(5,-1.2) -- (5,9) node [cyan,midway,xshift=1.1cm] {\footnotesize |
| 798 |
NWS\\Lake 3}; |
| 799 |
|
| 800 |
\draw [darkgreen, thick, decorate, decoration={brace,amplitude=10pt,raise=4pt},yshift=0pt] |
| 801 |
(-3.1,3) -- (-3.1,7.2) node [darkgreen,midway,xshift=-1.1cm, align=center] {\footnotesize |
| 802 |
LWS\\Lake 2}; |
| 803 |
\draw [darkgreen, thick, decorate, decoration={brace,amplitude=10pt,raise=4pt},yshift=0pt, align=center, anchor=center] |
| 804 |
(-5,3) -- (-5,9) node [darkgreen,midway,xshift=-1.1cm, align=center] {\footnotesize |
| 805 |
NWS\\Lake 2}; |
| 806 |
\end{tikzpicture} |
| 807 |
\end{column} |
| 808 |
\end{columns} |
| 809 |
|
| 810 |
} |
| 811 |
|
| 812 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 813 |
|
| 814 |
% \section{incrementalcumulativeloads} |
| 815 |
\def\incrementalcumulativeloads[#1]{ |
| 816 |
\begin{tikzpicture}[scale = #1] |
| 817 |
|
| 818 |
% \draw[step=1cm,gray,very thin] (-4,-3) grid (4,3); |
| 819 |
|
| 820 |
\draw [-,ultra thick, cyan] (-1,3) to [out=270,in=180] (0.2,2) to [out=0,in=90] (0,0.3) to [out=90,in=0] (0,-1) to [out=90,in=0] (0.2,-2) to [out=180,in=90] (-1,-3); |
| 821 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=20] plot (\x:0.5+rnd*0.25); |
| 822 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=-50] plot (\x:0.8+rnd*0.5); |
| 823 |
% \node at (0,-1.7) {test}; |
| 824 |
|
| 825 |
\pgfsetarrowsend{latex} |
| 826 |
\pgfsetlinewidth{0.7ex} |
| 827 |
\pgfsetstrokecolor{red} |
| 828 |
|
| 829 |
% cumulative 1 |
| 830 |
\pgfpathmoveto{\pgfpoint{1.7cm}{0.3cm}} |
| 831 |
\pgfpathlineto{\pgfpoint{1.7cm}{-1.3cm}} |
| 832 |
\pgfusepath{stroke} |
| 833 |
|
| 834 |
% cumulative 2 |
| 835 |
\pgfpathmoveto{\pgfpoint{1.7cm}{-3cm}} |
| 836 |
\pgfpathlineto{\pgfpoint{1.7cm}{-4cm}} |
| 837 |
\pgfusepath{stroke} |
| 838 |
|
| 839 |
\pgfsetstrokecolor{black} |
| 840 |
% incremental 1 |
| 841 |
\pgfpathmoveto{\pgfpoint{-1.7cm}{1.9cm}} |
| 842 |
\pgfpathlineto{\pgfpoint{-0.8cm}{0.8cm}} |
| 843 |
\pgfusepath{stroke} |
| 844 |
|
| 845 |
\pgfpathmoveto{\pgfpoint{1.7cm}{1.9cm}} |
| 846 |
\pgfpathlineto{\pgfpoint{0.8cm}{0.8cm}} |
| 847 |
\pgfusepath{stroke} |
| 848 |
|
| 849 |
% incremental 1 |
| 850 |
\pgfpathmoveto{\pgfpoint{-2cm}{-0.1cm}} |
| 851 |
\pgfpathlineto{\pgfpoint{-1.1cm}{-1.2cm}} |
| 852 |
\pgfusepath{stroke} |
| 853 |
|
| 854 |
\end{tikzpicture} |
| 855 |
} |
| 856 |
|
| 857 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 858 |
|
| 859 |
% \section{retentiontrapping} |
| 860 |
\def\retentiontrapping[#1]{ |
| 861 |
\begin{tikzpicture}[scale = #1] |
| 862 |
|
| 863 |
% \draw[step=1cm,gray,very thin] (-4,-3) grid (4,3); |
| 864 |
|
| 865 |
\draw [-,ultra thick, cyan] (-1,3) to [out=270,in=180] (0.2,2) to [out=0,in=90] (0,0.3) to [out=90,in=0] (0,-1) to [out=90,in=0] (0.2,-2) to [out=180,in=90] (-1,-3); |
| 866 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=20] plot (\x:0.5+rnd*0.25); |
| 867 |
\draw[cyan, ultra thick, domain=0:350, smooth cycle, fill=cyan,yshift=-50] plot (\x:0.8+rnd*0.5); |
| 868 |
% \node at (0,-1.7) {test}; |
| 869 |
|
| 870 |
\pgfsetarrowsend{latex} |
| 871 |
\pgfsetlinewidth{0.7ex} |
| 872 |
\pgfsetstrokecolor{red} |
| 873 |
|
| 874 |
% outflow 1 |
| 875 |
\pgfpathmoveto{\pgfpoint{1.8cm}{0.5cm}} |
| 876 |
\pgfpathlineto{\pgfpoint{1.8cm}{0cm}} |
| 877 |
\pgfusepath{stroke} |
| 878 |
|
| 879 |
% outflow 2 |
| 880 |
\pgfpathmoveto{\pgfpoint{1.8cm}{-2cm}} |
| 881 |
\pgfpathlineto{\pgfpoint{1.8cm}{-1.7cm}} |
| 882 |
\pgfusepath{stroke} |
| 883 |
|
| 884 |
\pgfsetstrokecolor{black} |
| 885 |
% inflow 1 |
| 886 |
\pgfpathmoveto{\pgfpoint{1.2cm}{0cm}} |
| 887 |
\pgfpathlineto{\pgfpoint{1.2cm}{1.4cm}} |
| 888 |
\pgfusepath{stroke} |
| 889 |
|
| 890 |
% trapping 1 |
| 891 |
\pgfpathmoveto{\pgfpoint{1.5cm}{1.4cm}} |
| 892 |
\pgfpathlineto{\pgfpoint{1.5cm}{0.6cm}} |
| 893 |
\pgfusepath{stroke} |
| 894 |
|
| 895 |
% inflow 2 |
| 896 |
\pgfpathmoveto{\pgfpoint{1.2cm}{-2.3cm}} |
| 897 |
\pgfpathlineto{\pgfpoint{1.2cm}{-0.7cm}} |
| 898 |
\pgfusepath{stroke} |
| 899 |
|
| 900 |
% trapping 2 |
| 901 |
\pgfpathmoveto{\pgfpoint{1.5cm}{-0.7cm}} |
| 902 |
\pgfpathlineto{\pgfpoint{1.5cm}{-1.9cm}} |
| 903 |
\pgfusepath{stroke} |
| 904 |
|
| 905 |
\end{tikzpicture} |
| 906 |
} |
| 907 |
|
| 908 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 909 |
|
| 910 |
\endinput |