Tikz - Overlapping arrows make them too big

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












3















I'm pretty new to Tikz and I'm facing a little issue.



I'd like to draw arrows that are overlapping, all going in same directions, but it's getting wider and wider and is pretty horrible. How could I face it ? Here is the code :



documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc

begindocument
begintikzpicture[node distance=2.3cm]
% Style
tikzstylecell = [rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20]
tikzstyletensor = [circle, minimum width=1cm, text centered, draw=black, fill=green!10]

tikzstylearrow = [thick,->,>=stealth]

% Nodes

node (he) [tensor] $h^e$;

node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
node (dn) [cell, right of=d2, xshift=2cm] $d$;

node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


% Arrows
draw[arrow] (w1) -| (d1);
draw[arrow] (w2) -| (d2);
draw[arrow] (wn) -| (dn);

draw[arrow] (d1) -- (d2);
draw[arrow] (he) |- (d1);

draw[arrow] (he) -| (d1);
draw[arrow] (he) -| (d2);
draw[arrow] (he) -| (dn);

endtikzpicture
enddocument


If you render the figure, you'll see arrows getting darker, how can I fix it ?



Thanks,
Cheers










share|improve this question
























  • Welcome to TeX.Stackexchange! Can you make your example compilable? When I try to run your code I get errors. I can debug them, but how would I know if this still reproduces the problem you are asking about?

    – samcarter
    Jan 23 at 10:26












  • Actually, as I know, if two lines overlapping each other in TikZ, they are darkened.

    – JouleV
    Jan 23 at 10:28











  • @samcarter I fixed it, bad copy/paster my bad

    – Ricocotam
    Jan 23 at 10:34











  • @joulev That's exactly my problem, I don't want arrows being darkened

    – Ricocotam
    Jan 23 at 10:35






  • 1





    Have you tried to print it? There are often aliasing problems with PDF viewers, and the line can seems darker or not depending on the zoom level.

    – Rmano
    Jan 23 at 10:45















3















I'm pretty new to Tikz and I'm facing a little issue.



I'd like to draw arrows that are overlapping, all going in same directions, but it's getting wider and wider and is pretty horrible. How could I face it ? Here is the code :



documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc

begindocument
begintikzpicture[node distance=2.3cm]
% Style
tikzstylecell = [rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20]
tikzstyletensor = [circle, minimum width=1cm, text centered, draw=black, fill=green!10]

tikzstylearrow = [thick,->,>=stealth]

% Nodes

node (he) [tensor] $h^e$;

node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
node (dn) [cell, right of=d2, xshift=2cm] $d$;

node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


% Arrows
draw[arrow] (w1) -| (d1);
draw[arrow] (w2) -| (d2);
draw[arrow] (wn) -| (dn);

draw[arrow] (d1) -- (d2);
draw[arrow] (he) |- (d1);

draw[arrow] (he) -| (d1);
draw[arrow] (he) -| (d2);
draw[arrow] (he) -| (dn);

endtikzpicture
enddocument


If you render the figure, you'll see arrows getting darker, how can I fix it ?



Thanks,
Cheers










share|improve this question
























  • Welcome to TeX.Stackexchange! Can you make your example compilable? When I try to run your code I get errors. I can debug them, but how would I know if this still reproduces the problem you are asking about?

    – samcarter
    Jan 23 at 10:26












  • Actually, as I know, if two lines overlapping each other in TikZ, they are darkened.

    – JouleV
    Jan 23 at 10:28











  • @samcarter I fixed it, bad copy/paster my bad

    – Ricocotam
    Jan 23 at 10:34











  • @joulev That's exactly my problem, I don't want arrows being darkened

    – Ricocotam
    Jan 23 at 10:35






  • 1





    Have you tried to print it? There are often aliasing problems with PDF viewers, and the line can seems darker or not depending on the zoom level.

    – Rmano
    Jan 23 at 10:45













3












3








3


1






I'm pretty new to Tikz and I'm facing a little issue.



I'd like to draw arrows that are overlapping, all going in same directions, but it's getting wider and wider and is pretty horrible. How could I face it ? Here is the code :



documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc

begindocument
begintikzpicture[node distance=2.3cm]
% Style
tikzstylecell = [rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20]
tikzstyletensor = [circle, minimum width=1cm, text centered, draw=black, fill=green!10]

tikzstylearrow = [thick,->,>=stealth]

% Nodes

node (he) [tensor] $h^e$;

node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
node (dn) [cell, right of=d2, xshift=2cm] $d$;

node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


% Arrows
draw[arrow] (w1) -| (d1);
draw[arrow] (w2) -| (d2);
draw[arrow] (wn) -| (dn);

draw[arrow] (d1) -- (d2);
draw[arrow] (he) |- (d1);

draw[arrow] (he) -| (d1);
draw[arrow] (he) -| (d2);
draw[arrow] (he) -| (dn);

endtikzpicture
enddocument


If you render the figure, you'll see arrows getting darker, how can I fix it ?



Thanks,
Cheers










share|improve this question
















I'm pretty new to Tikz and I'm facing a little issue.



I'd like to draw arrows that are overlapping, all going in same directions, but it's getting wider and wider and is pretty horrible. How could I face it ? Here is the code :



documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc

begindocument
begintikzpicture[node distance=2.3cm]
% Style
tikzstylecell = [rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20]
tikzstyletensor = [circle, minimum width=1cm, text centered, draw=black, fill=green!10]

tikzstylearrow = [thick,->,>=stealth]

% Nodes

node (he) [tensor] $h^e$;

node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
node (dn) [cell, right of=d2, xshift=2cm] $d$;

node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


% Arrows
draw[arrow] (w1) -| (d1);
draw[arrow] (w2) -| (d2);
draw[arrow] (wn) -| (dn);

draw[arrow] (d1) -- (d2);
draw[arrow] (he) |- (d1);

draw[arrow] (he) -| (d1);
draw[arrow] (he) -| (d2);
draw[arrow] (he) -| (dn);

endtikzpicture
enddocument


If you render the figure, you'll see arrows getting darker, how can I fix it ?



Thanks,
Cheers







tikz-arrows






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 23 at 10:35









samcarter

1




1










asked Jan 23 at 10:25









RicocotamRicocotam

183




183












  • Welcome to TeX.Stackexchange! Can you make your example compilable? When I try to run your code I get errors. I can debug them, but how would I know if this still reproduces the problem you are asking about?

    – samcarter
    Jan 23 at 10:26












  • Actually, as I know, if two lines overlapping each other in TikZ, they are darkened.

    – JouleV
    Jan 23 at 10:28











  • @samcarter I fixed it, bad copy/paster my bad

    – Ricocotam
    Jan 23 at 10:34











  • @joulev That's exactly my problem, I don't want arrows being darkened

    – Ricocotam
    Jan 23 at 10:35






  • 1





    Have you tried to print it? There are often aliasing problems with PDF viewers, and the line can seems darker or not depending on the zoom level.

    – Rmano
    Jan 23 at 10:45

















  • Welcome to TeX.Stackexchange! Can you make your example compilable? When I try to run your code I get errors. I can debug them, but how would I know if this still reproduces the problem you are asking about?

    – samcarter
    Jan 23 at 10:26












  • Actually, as I know, if two lines overlapping each other in TikZ, they are darkened.

    – JouleV
    Jan 23 at 10:28











  • @samcarter I fixed it, bad copy/paster my bad

    – Ricocotam
    Jan 23 at 10:34











  • @joulev That's exactly my problem, I don't want arrows being darkened

    – Ricocotam
    Jan 23 at 10:35






  • 1





    Have you tried to print it? There are often aliasing problems with PDF viewers, and the line can seems darker or not depending on the zoom level.

    – Rmano
    Jan 23 at 10:45
















Welcome to TeX.Stackexchange! Can you make your example compilable? When I try to run your code I get errors. I can debug them, but how would I know if this still reproduces the problem you are asking about?

– samcarter
Jan 23 at 10:26






Welcome to TeX.Stackexchange! Can you make your example compilable? When I try to run your code I get errors. I can debug them, but how would I know if this still reproduces the problem you are asking about?

– samcarter
Jan 23 at 10:26














Actually, as I know, if two lines overlapping each other in TikZ, they are darkened.

– JouleV
Jan 23 at 10:28





Actually, as I know, if two lines overlapping each other in TikZ, they are darkened.

– JouleV
Jan 23 at 10:28













@samcarter I fixed it, bad copy/paster my bad

– Ricocotam
Jan 23 at 10:34





@samcarter I fixed it, bad copy/paster my bad

– Ricocotam
Jan 23 at 10:34













@joulev That's exactly my problem, I don't want arrows being darkened

– Ricocotam
Jan 23 at 10:35





@joulev That's exactly my problem, I don't want arrows being darkened

– Ricocotam
Jan 23 at 10:35




1




1





Have you tried to print it? There are often aliasing problems with PDF viewers, and the line can seems darker or not depending on the zoom level.

– Rmano
Jan 23 at 10:45





Have you tried to print it? There are often aliasing problems with PDF viewers, and the line can seems darker or not depending on the zoom level.

– Rmano
Jan 23 at 10:45










2 Answers
2






active

oldest

votes


















4














The following example uses the calc library to print each line only once. If you still experience problems with varying line widths this is most probably an issue of your pdf viewer.



documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc

begindocument
begintikzpicture[node distance=2.3cm]
% Style
tikzset
cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
arrow/.style=thick,->,>=stealth


% Nodes

node (he) [tensor] $h^e$;

node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
node (dn) [cell, right of=d2, xshift=2cm] $d$;

node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


% Arrows
draw[arrow] (w1) -| (d1);
draw[arrow] (w2) -| (d2);
draw[arrow] (wn) -| (dn);

draw[arrow] (d1) -- (d2);
draw[arrow] (he) |- (d1);

draw[arrow] (he) -| (d1);
draw[arrow] let p1 = (he), p2 = (d1) in (x2,y1) -| (d2);
draw[arrow] let p1 = (he), p2 = (d2) in (x2,y1) -| (dn);

endtikzpicture
enddocument


enter image description here



Thanks to @marmot for suggesting this calc free version:



documentclassarticle
usepackage[utf8]inputenc
usepackagetikz
usetikzlibraryshapes.geometric, arrows

begindocument
begintikzpicture[node distance=2.3cm]
% Style
tikzset
cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
arrow/.style=thick,->,>=stealth


% Nodes

node (he) [tensor] $h^e$;

node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
node (dn) [cell, right of=d2, xshift=2cm] $d$;

node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


% Arrows
draw[arrow] (w1) -| (d1);
draw[arrow] (w2) -| (d2);
draw[arrow] (wn) -| (dn);

draw[arrow] (d1) -- (d2);
draw[arrow] (he) |- (d1);

draw[arrow] (he) -| (d1);
draw[arrow] (d1|-he) -| (d2);
draw[arrow] (d2|-he) -| (dn);

endtikzpicture
enddocument





share|improve this answer

























  • Thanks a lot, you're awsome ! Could you give a bit background or give some resources so I understand how to reuse this kind of things ?

    – Ricocotam
    Jan 23 at 10:51












  • @Ricocotam See tex.stackexchange.com/a/18393/36296 for a short example how the calc library works

    – samcarter
    Jan 23 at 12:53






  • 1





    @marmot Thanks for your suggestions! I just fixed the tikzset and will soon post a second example without calc.

    – samcarter
    Jan 23 at 14:43


















2














This is what I see (okular) at 100% zoom:



enter image description here



so I can't see any "darkening". Now, zooming in:



enter image description here



This is a rendering/aliasing problem for subpixel zooms, and it is mostly unsolvable (it depends on the anti-aliasing algorithm of the viewer).






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471444%2ftikz-overlapping-arrows-make-them-too-big%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    The following example uses the calc library to print each line only once. If you still experience problems with varying line widths this is most probably an issue of your pdf viewer.



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows, calc

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] let p1 = (he), p2 = (d1) in (x2,y1) -| (d2);
    draw[arrow] let p1 = (he), p2 = (d2) in (x2,y1) -| (dn);

    endtikzpicture
    enddocument


    enter image description here



    Thanks to @marmot for suggesting this calc free version:



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] (d1|-he) -| (d2);
    draw[arrow] (d2|-he) -| (dn);

    endtikzpicture
    enddocument





    share|improve this answer

























    • Thanks a lot, you're awsome ! Could you give a bit background or give some resources so I understand how to reuse this kind of things ?

      – Ricocotam
      Jan 23 at 10:51












    • @Ricocotam See tex.stackexchange.com/a/18393/36296 for a short example how the calc library works

      – samcarter
      Jan 23 at 12:53






    • 1





      @marmot Thanks for your suggestions! I just fixed the tikzset and will soon post a second example without calc.

      – samcarter
      Jan 23 at 14:43















    4














    The following example uses the calc library to print each line only once. If you still experience problems with varying line widths this is most probably an issue of your pdf viewer.



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows, calc

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] let p1 = (he), p2 = (d1) in (x2,y1) -| (d2);
    draw[arrow] let p1 = (he), p2 = (d2) in (x2,y1) -| (dn);

    endtikzpicture
    enddocument


    enter image description here



    Thanks to @marmot for suggesting this calc free version:



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] (d1|-he) -| (d2);
    draw[arrow] (d2|-he) -| (dn);

    endtikzpicture
    enddocument





    share|improve this answer

























    • Thanks a lot, you're awsome ! Could you give a bit background or give some resources so I understand how to reuse this kind of things ?

      – Ricocotam
      Jan 23 at 10:51












    • @Ricocotam See tex.stackexchange.com/a/18393/36296 for a short example how the calc library works

      – samcarter
      Jan 23 at 12:53






    • 1





      @marmot Thanks for your suggestions! I just fixed the tikzset and will soon post a second example without calc.

      – samcarter
      Jan 23 at 14:43













    4












    4








    4







    The following example uses the calc library to print each line only once. If you still experience problems with varying line widths this is most probably an issue of your pdf viewer.



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows, calc

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] let p1 = (he), p2 = (d1) in (x2,y1) -| (d2);
    draw[arrow] let p1 = (he), p2 = (d2) in (x2,y1) -| (dn);

    endtikzpicture
    enddocument


    enter image description here



    Thanks to @marmot for suggesting this calc free version:



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] (d1|-he) -| (d2);
    draw[arrow] (d2|-he) -| (dn);

    endtikzpicture
    enddocument





    share|improve this answer















    The following example uses the calc library to print each line only once. If you still experience problems with varying line widths this is most probably an issue of your pdf viewer.



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows, calc

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] let p1 = (he), p2 = (d1) in (x2,y1) -| (d2);
    draw[arrow] let p1 = (he), p2 = (d2) in (x2,y1) -| (dn);

    endtikzpicture
    enddocument


    enter image description here



    Thanks to @marmot for suggesting this calc free version:



    documentclassarticle
    usepackage[utf8]inputenc
    usepackagetikz
    usetikzlibraryshapes.geometric, arrows

    begindocument
    begintikzpicture[node distance=2.3cm]
    % Style
    tikzset
    cell/.style=rectangle, minimum width=1.5cm, minimum height=1.5cm, text centered, draw=black, fill=green!20,
    tensor/.style=circle, minimum width=1cm, text centered, draw=black, fill=green!10, arrow/.style=thick,->,>=stealth,
    arrow/.style=thick,->,>=stealth


    % Nodes

    node (he) [tensor] $h^e$;

    node (d1) [cell, right of=he, below of=he, xshift=1.5cm, yshift=-2cm] $d$;
    node (d2) [cell, right of=d1, xshift=1.5cm] $d$;
    node (dn) [cell, right of=d2, xshift=2cm] $d$;

    node (w1) [tensor, above of=d1, left of=d1, minimum width=1.25cm] $w_1$;
    node (w2) [tensor, above of=d2, left of=d2, minimum width=1.25cm] $w_2$;
    node (wn) [tensor, above of=dn, left of=dn, minimum width=1.25cm] $w_n$;


    % Arrows
    draw[arrow] (w1) -| (d1);
    draw[arrow] (w2) -| (d2);
    draw[arrow] (wn) -| (dn);

    draw[arrow] (d1) -- (d2);
    draw[arrow] (he) |- (d1);

    draw[arrow] (he) -| (d1);
    draw[arrow] (d1|-he) -| (d2);
    draw[arrow] (d2|-he) -| (dn);

    endtikzpicture
    enddocument






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 23 at 14:42

























    answered Jan 23 at 10:48









    samcartersamcarter

    1




    1












    • Thanks a lot, you're awsome ! Could you give a bit background or give some resources so I understand how to reuse this kind of things ?

      – Ricocotam
      Jan 23 at 10:51












    • @Ricocotam See tex.stackexchange.com/a/18393/36296 for a short example how the calc library works

      – samcarter
      Jan 23 at 12:53






    • 1





      @marmot Thanks for your suggestions! I just fixed the tikzset and will soon post a second example without calc.

      – samcarter
      Jan 23 at 14:43

















    • Thanks a lot, you're awsome ! Could you give a bit background or give some resources so I understand how to reuse this kind of things ?

      – Ricocotam
      Jan 23 at 10:51












    • @Ricocotam See tex.stackexchange.com/a/18393/36296 for a short example how the calc library works

      – samcarter
      Jan 23 at 12:53






    • 1





      @marmot Thanks for your suggestions! I just fixed the tikzset and will soon post a second example without calc.

      – samcarter
      Jan 23 at 14:43
















    Thanks a lot, you're awsome ! Could you give a bit background or give some resources so I understand how to reuse this kind of things ?

    – Ricocotam
    Jan 23 at 10:51






    Thanks a lot, you're awsome ! Could you give a bit background or give some resources so I understand how to reuse this kind of things ?

    – Ricocotam
    Jan 23 at 10:51














    @Ricocotam See tex.stackexchange.com/a/18393/36296 for a short example how the calc library works

    – samcarter
    Jan 23 at 12:53





    @Ricocotam See tex.stackexchange.com/a/18393/36296 for a short example how the calc library works

    – samcarter
    Jan 23 at 12:53




    1




    1





    @marmot Thanks for your suggestions! I just fixed the tikzset and will soon post a second example without calc.

    – samcarter
    Jan 23 at 14:43





    @marmot Thanks for your suggestions! I just fixed the tikzset and will soon post a second example without calc.

    – samcarter
    Jan 23 at 14:43











    2














    This is what I see (okular) at 100% zoom:



    enter image description here



    so I can't see any "darkening". Now, zooming in:



    enter image description here



    This is a rendering/aliasing problem for subpixel zooms, and it is mostly unsolvable (it depends on the anti-aliasing algorithm of the viewer).






    share|improve this answer



























      2














      This is what I see (okular) at 100% zoom:



      enter image description here



      so I can't see any "darkening". Now, zooming in:



      enter image description here



      This is a rendering/aliasing problem for subpixel zooms, and it is mostly unsolvable (it depends on the anti-aliasing algorithm of the viewer).






      share|improve this answer

























        2












        2








        2







        This is what I see (okular) at 100% zoom:



        enter image description here



        so I can't see any "darkening". Now, zooming in:



        enter image description here



        This is a rendering/aliasing problem for subpixel zooms, and it is mostly unsolvable (it depends on the anti-aliasing algorithm of the viewer).






        share|improve this answer













        This is what I see (okular) at 100% zoom:



        enter image description here



        so I can't see any "darkening". Now, zooming in:



        enter image description here



        This is a rendering/aliasing problem for subpixel zooms, and it is mostly unsolvable (it depends on the anti-aliasing algorithm of the viewer).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 23 at 10:49









        RmanoRmano

        7,98921647




        7,98921647



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471444%2ftikz-overlapping-arrows-make-them-too-big%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?