strukturedemo.tex 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. \documentclass{article}
  2. %usepackages
  3. \usepackage[margin=0.5in]{geometry}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage{textcomp}
  6. \usepackage{amssymb}
  7. %plots
  8. \usepackage{pgfplots}
  9. %for the table
  10. \usepackage{multirow}
  11. \usepackage{longtable}
  12. \usepackage{array}
  13. \usepackage{booktabs, tabularx}
  14. \usepackage{caption}
  15. \captionsetup[table]{position=above, belowskip=4pt}
  16. \usepackage{ragged2e}
  17. \usepackage{multicol}
  18. \usepackage{blindtext}
  19. \usetikzlibrary{pgfplots.groupplots}
  20. \pgfplotsset{width=15cm,compat=1.9} %size for bigger plot
  21. \begin{document}
  22. %OnlyPlot
  23. \begin{tikzpicture}
  24. \begin{axis}[
  25. title={Metallfadenlampe},
  26. xlabel={Spannung [V]},
  27. ylabel={Ladung [A]},
  28. xmin=0, xmax=200,
  29. ymin=0, ymax=0.4,
  30. xtick={0,20,40,60,80,100,120,140,160,180,200},
  31. ytick={0, 0.1, 0.2, 0.3, 0.4},
  32. legend pos=north west,
  33. ymajorgrids=true,
  34. grid style=dashed,
  35. ]
  36. \addplot[
  37. color=blue,
  38. mark=square,
  39. ]
  40. coordinates {
  41. (0,0)(4,0.006)(14,0.1)(24,0.12)(32,0.13)(41,0.15)(50,0.17)(59,0.19)(68,0.2)(76,0.22)(85,0.23)(93,0.23)(102,0.25)(112,0.26)(120,0.27)(129,0.28)(138,0.3)(147,0.31)(156,0.32)(165,0.33)(174,0.34)(183,0.35)(192,0.35)
  42. };
  43. \legend{Wiederstand [$\Omega$]}
  44. \end{axis}
  45. \end{tikzpicture}
  46. %================================================================================
  47. %three Plots
  48. \begin{tikzpicture}
  49. %Options for every plot but can be overwriten on \nextgroupplot
  50. \begin{groupplot}
  51. [
  52. enlargelimits=0,
  53. legend columns=5,
  54. ymajorgrids=true, %activates lines on the plots
  55. grid style=dashed, %makes the lines dashed
  56. width=6cm, %width of the plots
  57. height=6cm, %height of the plots
  58. %xtick={0,50,100,150,200}, %marks on the x-axe is also genarated
  59. nodes near coords align={vertical},
  60. group style={
  61. group size=3 by 1, %how many plots times plot
  62. xlabels at=edge bottom,
  63. ylabels at=edge left,
  64. horizontal sep=40pt, %distance betwen plots
  65. xticklabels at=edge bottom}
  66. ]
  67. \pgfplotsset{group/every plot/.style={xmin=1,xmax=10}}
  68. %Metallfadenlampe
  69. %Options for the single plots
  70. \nextgroupplot[title={ Metallfadenlampe},
  71. ymin=0, ymax=0.4,xmin=0,xmax=200,
  72. xlabel={Spannung [V]}, ylabel={Stromstärke [A]},
  73. legend style = { column sep = 10pt, legend columns = -1, legend to name = grouplegend}]
  74. %Options for the Graph
  75. \addplot
  76. [
  77. line width=0.4pt,
  78. color=black,
  79. mark=*,
  80. mark options={scale=0.4}
  81. ]
  82. coordinates{
  83. (0,0)(4,0.006)(14,0.1)(24,0.12)(32,0.13)(41,0.15)(50,0.17)(59,0.19)(68,0.2)(76,0.22)(85,0.23)(93,0.23)(102,0.25)(112,0.26)(120,0.27)(129,0.28)(138,0.3)(147,0.31)(156,0.32)(165,0.33)(174,0.34)(183,0.35)(192,0.35)};
  84. \addlegendentry{$Wiederstand$ $[\Omega]$}
  85. %Kohlefadenlampe
  86. \nextgroupplot[title={ Kohlefadenlampe},
  87. ymin=0, ymax=0.4,xmin=0,xmax=200,
  88. xlabel={Spannung [V]}, ylabel={Stromstärke [A]},
  89. ]
  90. \addplot
  91. [
  92. line width=0.3pt,
  93. color=black,
  94. mark=*,
  95. mark options={scale=0.4}
  96. ]
  97. coordinates{
  98. (0,0)(6,0)(15,0)(24,0)(33,0.01)(43,0.02)(51,0.03)(61,0.05)(69,0.06)
  99. (78,0.08)(87,0.1)(95,0.11)(105,0.13)(113,0.15)(122,0.17)(130,0.18)(140,0.2)(149,0.22)(157,0.24)(167,0.26)(176,0.28)(185,0.3)(194,0.31)};
  100. %Glimmlampe
  101. \nextgroupplot[title={ Glimmlampe},ymin=0, ymax=12,xmin=150,xmax=270, xlabel={Spannung [V]}, ylabel={Stromstärke [mA]},
  102. xtick={180,230,280}]
  103. \addplot
  104. [
  105. line width=0.3pt,
  106. color=black,
  107. mark=*,
  108. mark options={scale=0.4}
  109. ]
  110. coordinates{
  111. (181,0.02)(194,1.9)(207,3.56)(218,4.94)(230,6.65)(243,8.6)(256,9.58)(267,11.9)};
  112. \end{groupplot}
  113. \node at ($(group c2r1) + (0,-4cm)$) {\ref{grouplegend}};
  114. \end{tikzpicture}
  115. \newpage
  116. %============================================================================
  117. %table
  118. \begin{multicols}{3}
  119. %Metallfadelampe
  120. \begin{tabular}{| >{\centering\arraybackslash}m{0.5in} |
  121. >{\centering\arraybackslash}m{0.5in} |}
  122. \hline
  123. \multicolumn{2}{|c|}{Metallfadenlampe}\\
  124. \hline
  125. U[V] & I [mA]\\
  126. \hline
  127. 0 & 0\\
  128. \hline
  129. 4 & 60\\
  130. \hline
  131. 14 & 100\\
  132. \hline
  133. 24 & 120\\
  134. \hline
  135. 32 & 130\\
  136. \hline
  137. 41 & 150\\
  138. \hline
  139. 50 & 170\\
  140. \hline
  141. 59 & 190\\
  142. \hline
  143. 68 & 200\\
  144. \hline
  145. 76 & 220\\
  146. \hline
  147. 85 & 230\\
  148. \hline
  149. 93 & 230\\
  150. \hline
  151. 102 & 250\\
  152. \hline
  153. 112 & 260\\
  154. \hline
  155. 120 & 270\\
  156. \hline
  157. 129 & 280\\
  158. \hline
  159. 138 & 300\\
  160. \hline
  161. 147 & 310\\
  162. \hline
  163. 156 & 320\\
  164. \hline
  165. 165 & 330\\
  166. \hline
  167. 174 & 340\\
  168. \hline
  169. 183 & 350\\
  170. \hline
  171. 192 & 350\\
  172. \hline
  173. \end{tabular}
  174. %Kohlenfadenlampe
  175. \begin{tabular}{| >{\centering\arraybackslash}m{0.5in}
  176. |>{\centering\arraybackslash}m{0.5in} |}
  177. \hline
  178. \multicolumn{2}{|c|}{Kohlenfadenlampe}\\
  179. \hline
  180. U[V] & I [mA]\\
  181. \hline
  182. 0 & 0\\
  183. \hline
  184. 6 & 0\\
  185. \hline
  186. 15 & 0\\
  187. \hline
  188. 24 & 0\\
  189. \hline
  190. 33 & 10\\
  191. \hline
  192. 43 & 20\\
  193. \hline
  194. 51 & 30\\
  195. \hline
  196. 61 & 50\\
  197. \hline
  198. 69 & 60\\
  199. \hline
  200. 78 & 80\\
  201. \hline
  202. 87 & 100\\
  203. \hline
  204. 95 & 110\\
  205. \hline
  206. 105 & 130\\
  207. \hline
  208. 113 & 150\\
  209. \hline
  210. 122 & 170\\
  211. \hline
  212. 130 & 180\\
  213. \hline
  214. 140 & 200\\
  215. \hline
  216. 149 & 220\\
  217. \hline
  218. 157 & 240\\
  219. \hline
  220. 167 & 260\\
  221. \hline
  222. 176 & 280\\
  223. \hline
  224. 185 & 300\\
  225. \hline
  226. 194 & 310\\
  227. \hline
  228. \end{tabular}
  229. %Glimmlampe
  230. \begin{tabular}{|c|c|}
  231. \hline
  232. \multicolumn{2}{|c|}{Glimmlampe}\\
  233. \hline
  234. U[V] & I [mA]\\
  235. \hline
  236. 181 & 0.02\\
  237. \hline
  238. 194 & 1.9\\
  239. \hline
  240. 207 & 3.56\\
  241. \hline
  242. 218 & 4.94\\
  243. \hline
  244. 230 & 6.65\\
  245. \hline
  246. 243 & 8.6\\
  247. \hline
  248. 256 & 9.58\\
  249. \hline
  250. 267 & 11.9\\
  251. \hline
  252. \end{tabular}
  253. \end{multicols}
  254. \pagebreak
  255. %=============================================================================
  256. \begin{center}
  257. \begin{tabular}{ |c|c|c|c| }
  258. \hline
  259. \multicolumn{4}{|c|}{Country List} \\
  260. \hline
  261. col1 & col2 & col3 & col4\\
  262. \hline
  263. \multirow{4}{4em}{Multiple row}
  264. & cell2 & cell3 & cell10\\
  265. & cell5 & cell6 &cell11\\
  266. & cell8 & cell9 & cell12\\
  267. \hline
  268. \end{tabular}
  269. \end{center}
  270. \begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}|p{3cm}| }
  271. \hline
  272. \multicolumn{4}{|c|}{Country List} \\
  273. \hline
  274. Country Name or Area Name& ISO ALPHA 2 Code &ISO ALPHA 3 Code&ISO numeric Code\\
  275. \hline
  276. Afghanistan & AF &AFG& 004\\
  277. Aland Islands& AX & ALA &248\\
  278. Albania &AL & ALB& 008\\
  279. Algeria &DZ & DZA& 012\\
  280. American Samoa& AS & ASM&016\\
  281. Andorra& AD & AND &020\\
  282. Angola& AO & AGO&024\\
  283. \hline
  284. \end{tabular}
  285. \begin{longtable}[c]{| c | c |}
  286. \caption{Long table caption.\label{long}}\\
  287. \hline
  288. \multicolumn{2}{| c |}{Begin of Table}\\
  289. \hline
  290. Something & something else\\
  291. \hline
  292. \endfirsthead
  293. \hline
  294. \multicolumn{2}{|c|}{Continuation of Table \ref{long}}\\
  295. \hline
  296. Something & something else\\
  297. \hline
  298. \endhead
  299. \hline
  300. \endfoot
  301. \hline
  302. \multicolumn{2}{| c |}{End of Table}\\
  303. \hline\hline
  304. \endlastfoot
  305. Lots of lines & like this\\
  306. Lots of lines & like this\\
  307. Lots of lines & like this\\
  308. Lots of lines & like this\\
  309. Lots of lines & like this\\
  310. Lots of lines & like this\\
  311. Lots of lines & like this\\
  312. Lots of lines & like this\\
  313. ...
  314. Lots of lines & like this\\
  315. \end{longtable}
  316. \begin{multicols}{2}
  317. \begin{tabular}{|c|c|}
  318. el&el2\\
  319. \hline
  320. el3&el4\\
  321. \hline
  322. \end{tabular}
  323. \begin{tabular}{|c|c|}
  324. el&el2\\
  325. \hline
  326. el3&el4\\
  327. \hline
  328. \end{tabular}
  329. \end{multicols}
  330. \begin{table}
  331. \parbox{.45\linewidth}{
  332. \centering
  333. \begin{tabular}{|c|c|}
  334. \hline
  335. a&b\\
  336. \hline
  337. \end{tabular}
  338. \caption{Foo}
  339. }
  340. \hfill
  341. \parbox{.45\linewidth}{
  342. \centering
  343. \begin{tabular}{|c|c|}
  344. \hline
  345. d&e\\
  346. \hline
  347. \end{tabular}
  348. \caption{Bar}
  349. }
  350. \end{table}
  351. \begin{table}[htbp]
  352. \caption{filter window size}
  353. \label{tab:config_filternum}
  354. \begin{tabularx}{.5\textwidth}{| X | X | c |}
  355. \hline
  356. number of entity filter (size 1) & number of context filters (size 2, size 3,
  357. size 4) & Accuracy\\ [2ex]
  358. \hline
  359. 32 & 32 , 32 , 32 & 0.835 \\ [0.5ex]
  360. \hline
  361. 32 & 64 , 64 , 64 & 0.821 \\ [0.5ex]
  362. \hline
  363. \hline
  364. \end{tabularx}
  365. \quad
  366. \begin{tabularx}{.5\textwidth}{| X | X | c |}
  367. \hline
  368. number of entity filter (size 1) & number of context filters (size 2, size 3,
  369. size 4) & Accuracy\\ [2ex]
  370. \hline
  371. 512 & 32 , 32 , 32 & 0.910 \\[0.5ex]
  372. \hline
  373. 512 & 64 , 64 , 64 & 0.922 \\[0.5ex]
  374. \hline
  375. \hline
  376. \end{tabularx}
  377. \end{table}
  378. %=============================================================================
  379. \end{document}