Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. %% Setting coordinates
  2. foreach n in {1,...,8}{
  3. coordinate (Pn) at (n*45:1);
  4. }
  5. coordinate (P9) at ($.5*(P3)+.5*(P8)$);
  6. coordinate (P10) at ($.5*(P4)+.5*(P7)$);
  7.  
  8. %% Drawing the graph
  9. draw[myline,blue!70] (P7) -- (P8) -- (P9);
  10. draw[myline,red!70] (P3) -- (P4) -- (P10);
  11. draw[myline,green!70!black] (P1) -- (P9) -- (P2);
  12. draw[myline] (P5) -- (P10);
  13. draw[myline] (P6) -- (P7);
  14. draw[myline] (P2) -- (P3);
  15.  
  16. %% Drawing the shapes
  17. draw[dashed, very thick] (0,0) circle (1.55);
  18. % draw [decorate,decoration={brace,amplitude=2pt,mirror,raise=4pt}] (1,1) arc (0:180:1.5 and 1);
  19. draw[decorate,decoration=brace](45:1.7) arc (-45:90:1.7);
  20.  
  21. draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)
  22. -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)
  23. -- ($(P1)+(-55:.25)$) arc (-55:45:.25);
  24.  
  25. draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)
  26. -- ($(P10)+(250:.25)$) arc (250:380:.25)
  27. -- ($(P3)+(20:.25)$) arc (20:135:.25);
  28.  
  29. draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)
  30. -- ($(P9)+(70:.2)$) arc (70:215:.2)
  31. -- ($(P7)+(215:.2)$) arc (215:315:.2);
  32.  
  33. %% Drawing the node
  34. foreach n in {1,...,10}{
  35. fill (Pn) circle (.1);% node[scale=.3,white]{n};
  36. }
  37.  
  38. %% Labeling the clusters
  39.  
  40. end{tikzpicture}
  41. caption{}label{fig:GMR1}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement