LaTeX forum ⇒ Graphics, Figures & Tablestikz nodes connection problem

Information and discussion about graphics, figures & tables in LaTeX documents.
Bahurin
Posts: 5
Joined: Mon Dec 30, 2013 2:33 pm

tikz nodes connection problem

Postby Bahurin » Fri Jan 01, 2016 4:10 pm

Dear all!
I cannot to find solution of my problems.
I created short code:

  1. \documentclass{article}
  2. \usepackage{tikz}
  3. \usetikzlibrary{shapes, snakes, arrows}
  4.  
  5. \tikzset{
  6. sum/.style={circle,draw=black,fill=white,thick, inner sep=0pt,minimum size=6mm},
  7. gain/.style={regular polygon,regular polygon sides=3, draw = black, fill=white,thick, minimum size=6mm},
  8. none/.style={draw=none,fill=none}}
  9.  
  10. \begin{document}
  11.  
  12. \begin{tikzpicture}[thick, >=stealth]
  13.  
  14. \node(w) at (0,0) [gain, rotate = -90] {};
  15. \node(sum0) at ( 2,0) [sum] {$+$};
  16. \draw[->] (w) -- (sum0) ;
  17. \draw[*->] (1,0) -- (1,-1) ;
  18.  
  19.  
  20. \end{tikzpicture}
  21.  
  22.  
  23. \end{document}


I created 2 nodes: triangle and circle and I want to connect nodes (see picture).

arrows.png
arrows.png (3.29 KiB) Viewed 3185 times


But line from triangle node likes bad. Also I want to create branch from my connection like this
  1. \draw[*->] (1,0) -- (1,-1) ;

but beggining marker also just touch main line.

Could you tell me how can I solve these problems?
Thanks!

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9521
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Jan 01, 2016 7:21 pm

Hi Bahurin,

very good minimal example and picture! So it makes fun to read and to test it.

You could simply extend the lines, that is, shorten by a negative value:

  1. \draw[->, shorten <=-1] (w) -- (sum0) ;
  2. \draw[*->, shorten <=-3] (1,0) -- (1,-1) ;


arrows.png
arrows.png (9.68 KiB) Viewed 3177 times


Stefan
Site admin


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 2 guests