Advertisement
Guest User

Untitled

a guest
Jan 21st, 2015
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.31 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{pgfplots}
  3. \usepackage{pgfplotstable}
  4. \pgfplotsset{compat=newest}
  5. \begin{document}
  6.  
  7. \begin{center}
  8.  
  9. %\begin{tikzpicture}
  10. %\pgfplotstableread{
  11. %88.41 82.92 2.8193
  12. %88.401 82.89 2.9286
  13. %88.38 83.09 2.8977
  14. %%1     1.9857 2.9523
  15. %%1     1.9706 2.8329
  16. %%1     1.9854 2.9093
  17. %}\datatable
  18.  
  19. \begin{tikzpicture}
  20. \pgfplotstableread{
  21. 88.41 82.92
  22. 88.401 82.89
  23. 88.38 83.09
  24. %1     1.9857 2.9523
  25. %1     1.9706 2.8329
  26. %1     1.9854 2.9093
  27. }\datatable
  28.  
  29. \node [align=center,
  30.    text width=2.15cm, inner sep=0.25cm] at (1.00cm, -0.20cm) {\textsc{Stride:150}};
  31.  
  32. \node [align=center,
  33. text width=2.15cm, inner sep=0.25cm] at (3.00cm, -0.20cm) {\textsc{Stride:300}};
  34.  
  35. \node [align=center,
  36.    text width=2.15cm, inner sep=0.25cm] at (5.0cm, -0.20cm) {\textsc{Stride:450}};
  37.  
  38. \begin{axis}[
  39.   ybar,
  40.    title style={align=center, yshift=-0.75em},
  41.    title={Analysis of clique-stride},
  42.    ticks=both,
  43.    ytick={0,10,20,30,40,50,60,70,80,90,100.0},
  44.    axis x line = bottom,
  45.    axis y line = left,
  46.    axis line style={-|},
  47.    nodes near coords = \rotatebox{90}{{\pgfmathprintnumber[fixed zerofill, precision=2]{\pgfplotspointmeta}}},
  48.    nodes near coords align={vertical},
  49.    every node near coord/.append style={font=\small, fill=white, yshift=0.55mm},
  50.    enlarge y limits={lower, value=0.1},
  51.    enlarge y limits={upper, value=0.64},
  52. %    enlarge x limits ={.3},
  53.     ylabel style={yshift=-0.75em},
  54.    ylabel={Accuracy},
  55.    xtick=data,
  56.     ymin = 70,
  57. %    ymax = 100,
  58.     ymajorgrids,
  59.     xticklabels={},
  60. %    xticklabels={
  61. %        $2001$,
  62. %        $1000$,
  63. %        $200$,
  64. %        $1000$,
  65. %        $200$,
  66. %        $1000$},
  67.     legend style={at={(0.5, -0.12)}, anchor=north, legend columns=3},
  68.    every axis legend/.append style={nodes={right}, inner sep = 0.2cm},
  69.    x tick label style={align=center, yshift=-0.6cm},
  70.    enlarge x limits=0.1,
  71.    width=7.5cm,
  72.    height=5.5cm,
  73. ]
  74. \pgfplotsinvokeforeach {0,...,1}{
  75.   \addplot table [x expr={\coordindex-mod(\coordindex,1)/4}, y index=#1] {\datatable};
  76. }
  77.  
  78. \draw (axis cs:0.61,0) -- ({axis cs:0.61,0}|-{rel axis cs:0.5,1});
  79. \draw (axis cs:1.42,0) -- ({axis cs:1.42,0}|-{rel axis cs:0.5,1});
  80. \legend{F1-score\hspace*{8pt}, Topological Measure}
  81. \end{axis}
  82. \end{tikzpicture}
  83. \end{center}
  84.  
  85. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement