You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
4.2KB

  1. \usepackage{tikz}
  2. \usepackage{pgfplots}
  3. \pgfplotsset{compat=1.14}
  4. \newcommand{\includestandalonewithpath}[2][]{%
  5. \begingroup%
  6. \StrCount{#2}{/}[\matches]%
  7. \StrBefore[\matches]{#2}{/}[\figurepath]%
  8. \includestandalone[#1]{#2}%
  9. \endgroup%
  10. }
  11. % See
  12. % https://tex.stackexchange.com/a/23583
  13. \tikzset{onslide/.code args={<#1>#2}{%
  14. \only<#1>{\pgfkeysalso{#2}} % \pgfkeysalso doesn't change the path
  15. }}
  16. \usetikzlibrary{angles}
  17. \usetikzlibrary{backgrounds}
  18. \usetikzlibrary{calc}
  19. \usetikzlibrary{chains}
  20. \usetikzlibrary{decorations}
  21. \usetikzlibrary{fit}
  22. \usetikzlibrary{graphs}
  23. \usetikzlibrary{graphdrawing}
  24. \usegdlibrary{layered,force,trees}
  25. \usetikzlibrary{matrix}
  26. \usetikzlibrary{patterns}
  27. \usetikzlibrary{positioning}
  28. \usetikzlibrary{quotes}
  29. \usetikzlibrary{scopes}
  30. \usetikzlibrary{shapes}
  31. \usetikzlibrary{shapes.multipart}
  32. \usepgfplotslibrary{fillbetween}
  33. \usepgfplotslibrary{units}
  34. \tikzstyle{wind data} = [thick, tumgray1]
  35. \tikzstyle{latent function} = [semithick, dashed]
  36. \tikzstyle{mean} = [semithick, smooth]
  37. \tikzstyle{weak mean} = [thin, smooth]
  38. \tikzstyle{std} = [very thin, smooth]
  39. \tikzstyle{first} = [tumblue]
  40. \tikzstyle{first fill} = [tumblue, opacity=0.20]
  41. \tikzstyle{second} = [tumgreen]
  42. \tikzstyle{second fill} = [tumgreen, opacity=0.20]
  43. \tikzstyle{shared} = [tumviolet]
  44. \tikzstyle{shared fill} = [tumviolet, opacity=0.20]
  45. \tikzstyle{independent} = [tumviolet, densely dotted]
  46. \tikzstyle{independent fill} = [tumviolet, opacity=0.20]
  47. \tikzstyle{sample} = [tumviolet, semithick, smooth]
  48. \tikzstyle{tiny sample} = [sample, very thin]
  49. \pgfplotsset{filter discard warning=false}
  50. \pgfplotsset{unbounded coords=discard}
  51. \pgfplotsset{data/.style = {
  52. only marks,
  53. mark size=1pt,
  54. fill opacity=.5,
  55. }}
  56. \pgfplotsset{tiny data/.style = {
  57. only marks,
  58. mark=*,
  59. mark size=.35pt,
  60. draw opacity=0,
  61. fill opacity=.85,
  62. }}
  63. \pgfplotsset{qualitative/.style = {
  64. grid=major,
  65. enlarge x limits=false,
  66. ticks=none,
  67. width=420pt,
  68. height=140pt,
  69. }}
  70. \pgfplotsset{decomposition/.style = {
  71. % grid=major,
  72. enlarge x limits=false,
  73. ticks=none,
  74. % try min ticks=3,
  75. width=100pt,
  76. height=100pt,
  77. }}
  78. \pgfplotsset{paper decomposition/.style = {
  79. grid=major,
  80. try min ticks=3,
  81. enlarge x limits=false,
  82. width=110pt,
  83. height=75pt,
  84. ylabel style={at={(ticklabel* cs:0.5)},rotate=-90},
  85. xlabel style={at={(ticklabel* cs:0.5)}},
  86. tick label style={font=\small},
  87. label style={font=\small},
  88. }}
  89. \pgfplotsset{paper true decomposition/.style = {
  90. paper decomposition,
  91. height=65pt,
  92. }}
  93. \pgfplotsset{decomposition joint plot/.style = {
  94. grid=major,
  95. height=75pt,
  96. enlarge x limits=false,
  97. ylabel style={rotate=-90},
  98. ytick pos=left,
  99. xmin=0, xmax=1,
  100. xtick={0, 0.5, 1},
  101. xticklabels={0, , 1},
  102. ymin=-1.5, ymax=1.5,
  103. ytick={-1, 0, 1},
  104. yticklabels={-1, , 1},
  105. ylabel style={at={(ticklabel* cs:0.5)}},
  106. xlabel style={at={(ticklabel* cs:0.5)}},
  107. tick label style={font=\small},
  108. label style={font=\small},
  109. }}
  110. \pgfplotsset{model plot/.style = {
  111. grid=major,
  112. height=100pt,
  113. enlarge x limits=false,
  114. ylabel style={rotate=-90},
  115. }}
  116. \pgfplotsset{appendix model plot/.style = {
  117. grid=major,
  118. height=150pt,
  119. enlarge x limits=false,
  120. ylabel style={rotate=-90},
  121. }}
  122. \tikzstyle{edge} = [draw, thick, shorten >=2pt, shorten <=2pt]
  123. \tikzstyle{directed} = [arrows={-latex}, shorten >=2pt, shorten <=0pt]
  124. \tikzstyle{inverse directed} = [arrows={latex-}, shorten >=0pt, shorten <=2pt]
  125. \tikzstyle{random variable} = [draw, very thick, circle, inner sep=1pt, minimum size=20pt, font=\small]
  126. \tikzstyle{implicit} = [rectangle, inner sep=3pt]
  127. \tikzstyle{observed} = [fill=tumred!40]
  128. % \tikzstyle{variational} = [fill=tumblue!40]
  129. % Do not print the text in variational nodes to save space
  130. \tikzstyle{variational} = [fill=tumblue!40, text opacity=0, inner sep=-8pt, minimum size=12pt]
  131. \tikzstyle{latent} = [fill=tumgreen!40]
  132. \tikzstyle{alignment node} = [draw=black, thick, rectangle, inner sep=0pt, minimum size=6pt]
  133. \tikzstyle{alignment connection} = [draw=black, thick]
  134. \makeatletter
  135. \DeclareRobustCommand{\rvdots}{%
  136. \vbox{
  137. \baselineskip4\p@\lineskiplimit\z@
  138. \kern-\p@
  139. \hbox{.}\hbox{.}\hbox{.}
  140. }}
  141. \makeatother