Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. documentclass[border=10pt]{article}
  2. usepackage{tikz}
  3. usepackage{pgfplots}pgfplotsset{compat=1.9}
  4. usepackage{pgfplots}
  5. usepackage{subcaption}
  6. %usepackage{subfig}
  7.  
  8. begin{document}
  9.  
  10. begin{figure}
  11.  
  12.  
  13. begin{subfigure}[b]{.5textwidth}
  14.  
  15. begin{tikzpicture}
  16.  
  17. begin{axis}[
  18. width=linewidth,
  19. line width=0.5,
  20. grid=major, % Display a grid
  21. tick label style={font={tiny }},
  22. legend style={nodes={scale=0.5, transform shape}},
  23. label style={font={tiny }},
  24. legend image post style={},
  25. grid style={white},
  26. xlabel={$L$},
  27. ylabel={RMSE},
  28. y tick label style={
  29. /pgf/number format/.cd,
  30. fixed,
  31. fixed zerofill,
  32. precision=2
  33. },
  34. legend style={at={(1,0.95)}, anchor=north east, draw=none, fill=none},
  35. ]
  36. addplot[yellow!70!black,mark=o] table[x expr=coordindex,y index=0] {
  37. 1.10513572361827
  38. 1.01208437057981
  39. 0.982129141362504
  40. 0.965535272773208
  41. 0.957525450047405
  42. 0.950991908467125
  43. 0.946662138047365
  44. 0.943677368384648
  45. 0.940827823053617
  46. 0.93852695585576
  47. 0.937338147322294
  48. 0.936376782449026
  49. 0.935476555754726
  50. 0.934912595379137
  51. 0.934178228940874
  52. 0.933667194443903
  53. 0.933013501708987
  54. 0.93258158463199
  55. 0.932380922764795
  56. 0.932389541141296
  57. 0.932133711215744
  58. 0.931961231250164
  59. 0.931738224344107
  60. 0.931468313557695
  61. 0.931422476255418
  62. 0.931391659490055
  63. 0.931455259106802
  64. 0.93149001089855
  65. 0.931437474580863
  66. 0.931450423300504
  67. 0.931455524207492
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. };
  77. addlegendentry{Pearson}
  78. addplot[black,mark=star] table[x expr=coordindex,y index=0] {
  79. 1.10719721735896
  80. 1.01582510540871
  81. 0.985098421134354
  82. 0.96786252360382
  83. 0.958886724738097
  84. 0.952042896687217
  85. 0.947384236080908
  86. 0.944073525331402
  87. 0.942432710350078
  88. 0.941273030120187
  89. 0.939938038398727
  90. 0.939550221948232
  91. 0.938367614513753
  92. 0.937633178953075
  93. 0.937095821198273
  94. 0.936939991272534
  95. 0.936277616991041
  96. 0.936242747915614
  97. 0.935844591009396
  98. 0.935483558286952
  99. 0.935277656644467
  100. 0.935123081220845
  101. 0.93485985632522
  102. 0.934528594943281
  103. 0.934930752987058
  104. 0.935051236286854
  105. 0.935076947538366
  106. 0.934886531636357
  107. 0.934947666897746
  108. 0.935073906674002
  109. 0.935157289426046
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117. };addlegendentry{Cosin}
  118. end{axis}
  119.  
  120. end{tikzpicture}
  121.  
  122. subcaption{}
  123. end{subfigure}
  124. begin{subfigure}[b]{.5textwidth}
  125. begin{tikzpicture}
  126. begin{axis}[
  127. width=linewidth,
  128. line width=0.5,
  129. grid=major, % Display a grid
  130. tick label style={font={tiny normalsize}},
  131. legend style={nodes={scale=0.5, transform shape}},
  132. label style={font={tiny }},
  133. legend image post style={},
  134. grid style={white},
  135. xlabel={$L$},
  136. ylabel={RMSE},
  137. y tick label style={
  138. /pgf/number format/.cd,
  139. fixed,
  140. fixed zerofill,
  141. precision=2
  142. },
  143. legend style={at={(1,0.95)}, anchor=north east, draw=none, fill=none},
  144. ]
  145. addplot[yellow!70!black, mark=*] table[x expr=coordindex,y index=0] {
  146. 1.10044666987188
  147. 0.999866628197923
  148. 0.962963949342376
  149. 0.943403150588027
  150. 0.931529691648424
  151. 0.924045339875979
  152. 0.918468987434381
  153. 0.913649154735605
  154. 0.911157563271859
  155. 0.908218682496785
  156. 0.906511033860998
  157. 0.90443746348175
  158. 0.903400003992971
  159. 0.902483106259459
  160. 0.901182138357611
  161. 0.901091293199105
  162. 0.899933357494439
  163. 0.900063989150366
  164. 0.899211759220085
  165. 0.898987646719118
  166. 0.898646916828567
  167. 0.898417264469362
  168. 0.898459860253319
  169. 0.897422113091948
  170. 0.897511433364885
  171. 0.897719097814211
  172. 0.897468138957815
  173. 0.896900763109816
  174. 0.896830721469015
  175. 0.896639819945792
  176. 0.896921589458794
  177. 0.896692907982105
  178. 0.896299668842855
  179. 0.896548805770678
  180. 0.896705444236237
  181. 0.896480855030312
  182. 0.896121426498849
  183. 0.896576004074635
  184. 0.896724593958936
  185. 0.896074079674064
  186.  
  187.  
  188.  
  189.  
  190. };
  191. addlegendentry{Pearson}
  192. addplot[black,mark=diamond*] table[x expr=coordindex,y index=0] {
  193. 1.1004034632523
  194. 0.998981366476003
  195. 0.964639819737259
  196. 0.9444588045967
  197. 0.934183872252177
  198. 0.926891588816588
  199. 0.920490355844599
  200. 0.916942125511546
  201. 0.914143090761063
  202. 0.91128589816521
  203. 0.909182330912049
  204. 0.908232246881679
  205. 0.906636708328323
  206. 0.905496628641986
  207. 0.904497783904894
  208. 0.903924914963062
  209. 0.902914066101777
  210. 0.903344661657377
  211. 0.902240953590319
  212. 0.901749031200971
  213. 0.901834063495761
  214. 0.901292603319992
  215. 0.90158539067463
  216. 0.90035948553436
  217. 0.900803164231954
  218. 0.900580586971413
  219. 0.900133521878354
  220. 0.900192476497936
  221. 0.899895224347253
  222. 0.900483176538678
  223. 0.900294084681683
  224. 0.899855113311963
  225. 0.900250507629163
  226. 0.899975977846179
  227. 0.899925759050512
  228. 0.90002961631342
  229. 0.900017002057276
  230. 0.900060834589157
  231. 0.899758520687127
  232. 0.900630302682763
  233.  
  234.  
  235.  
  236.  
  237. };addlegendentry{Cosine}
  238. end{axis}
  239.  
  240. end{tikzpicture}
  241.  
  242.  
  243. subcaption{}
  244.  
  245. end{subfigure}
  246.  
  247.  
  248.  
  249. end{figure}
  250. end{document}
  251.  
  252. documentclass[tikz]{standalone}
  253. usetikzlibrary{shapes.geometric}
  254. usepackage{pgfplots}
  255. pgfplotsset{compat=newest}
  256. pgfdeclareplotmark{star}{
  257. node[star,star point ratio=2.25,minimum size=6pt,
  258. inner sep=0pt,draw=black,solid,fill=red] {};
  259. }
  260. begin{document}
  261. begin{tikzpicture}
  262. begin{axis}
  263. addplot[mark=star,red,dashed] coordinates {(0,0) (3,4) (4,1)};
  264. end{axis}
  265. end{tikzpicture}
  266. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement