Advertisement
gonmedare

Untitled

May 13th, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. \documentclass[12pt]{article}
  2. \usepackage{amsmath}
  3. \usepackage{tikz}
  4. \usetikzlibrary{positioning}
  5.  
  6. \definecolor{colortop}{RGB}{184,223,155}
  7. \definecolor{colorside}{RGB}{0,209,54}
  8.  
  9. \DeclareMathOperator{\Att}{Att}
  10. \DeclareMathOperator{\Item}{Item}
  11.  
  12. \begin{document}
  13.  
  14. \pagestyle{empty}
  15. \begin{tikzpicture}[every node/.style={minimum size=1cm,font=\scriptsize},on grid]
  16. \begin{scope}[every node/.append style={yslant=-0.5,rotate=90},yslant=-0.5]
  17. \shade[right color=colorside!30, left color=colorside!50] (-1,0) rectangle +(4,3);
  18. \node at (-0.5,2.25) {};
  19. \node at (0.5,2.25) {$\Att_1$};
  20. \node at (1.5,2.25) {$\Att_2$};
  21. \node at (2.5,2.25) {$\Att_3$};
  22. \node at (-0.5,0.75) {User};
  23. \node at (0.5,0.75) {$1$};
  24. \node at (1.5,0.75) {$0$};
  25. \node at (2.5,0.75) {$0$};
  26. \draw (-1,0) grid[ystep=1.5] (3,3);
  27. \end{scope}
  28. \begin{scope}[every node/.append style={yslant=0.5},yslant=0.5]
  29. \shade[right color=colorside!70,left color=colorside!10] (3,-3) rectangle +(5,3);
  30. \node at (3.5,-0.5) {};
  31. \node at (4.5,-0.5) {$\Att_1$};
  32. \node at (5.5,-0.5) {$\Att_2$};
  33. \node at (6.5,-0.5) {$\Att_3$};
  34. \node at (7.5,-0.5) {$\Att_4$};
  35. \node at (3.5,-1.5) {$\Item_1$};
  36. \node at (4.5,-1.5) {$0$};
  37. \node at (5.5,-1.5) {$1$};
  38. \node at (6.5,-1.5) {$1$};
  39. \node at (7.5,-1.5) {$1$};
  40. \node at (3.5,-2.5) {$\Item_2$};
  41. \node at (4.5,-2.5) {$0$};
  42. \node at (5.5,-2.5) {$0$};
  43. \node at (6.5,-2.5) {$1$};
  44. \node at (7.5,-2.5) {$0$};
  45. \draw (3,-3) grid (8,0);
  46. \end{scope}
  47. \begin{scope}[every node/.append style={
  48. yslant=0.5,xslant=-1},yslant=0.5,xslant=-1
  49. ]
  50. \shade[bottom color=colortop!10, top color=colortop!80] (8,4) rectangle +(-5,-4);
  51. \node[font=\scriptsize\color{red},rotate=-90] at (5.5,2) {User--item feature matrix};
  52. \end{scope}
  53. \end{tikzpicture}
  54. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement