Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{tikz}
  3. begin{document}
  4. begin{tikzpicture}[scale=3]
  5. draw [help lines,step=0.5cm] (-1.4,-1.4) grid (1.4,1.4);
  6. draw (0,0) circle (1cm);
  7. draw [-latex] (0,-1.5) -- (0,1.5);
  8. filldraw [fill=green!20,draw=green] (0,0) -- (0.3,0) arc [start angle=0,end angle=30,radius=0.3cm] -- cycle;
  9. draw [-latex] (-1.5,0) -- (1.5,0);
  10. draw [->,rotate=45,dashed] (-1.5,0) -- (1.5,0);% <-- standard arrowheads are not affected
  11. foreach x in {0,30,...,330}%<-- just to highlight the problem
  12. node [draw,thick,red,circle,minimum size=.8cm,
  13. pin={[pin edge={latex-,red,thick,shorten <=1pt}]x:$$}] at (1.5,0) {};%<-- these arrows are not affected
  14. end{tikzpicture}\
  15. My PGF version is pgfversion.
  16. end{document}
  17.  
  18. documentclass[tikz,border=7mm]{standalone}
  19. begin{document}
  20. begin{tikzpicture}
  21. path[draw=orange] (0,0) circle(1cm); % this draw color is used after by some arrows
  22. draw[ultra thick,|->] (0:-1) -- (0:1); % the standard and | arrows are not affected
  23. draw[ultra thick,stealth-latex] (90:-1) -- (90:1); % the latex and stealth arrows use the previous draw color
  24. node {}; % node reset the draw color !
  25. draw[ultra thick,stealth-latex] (45:-1) -- (45:1); % now it is ok
  26. end{tikzpicture}
  27. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement