Draw multiple arrows from one node to many others using a palette of colorsDraw a set of arrows using a palette of colorsHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?Highlight overlap between nodes and draw arrow from node edgeDraw arrows between nodes with tikzDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingWhy does my arrow head size decrease?how to draw 'inhibitory' arrow in latex tikz?Use hsb color modelDraw a set of arrows using a palette of colors

What should be the ideal length of sentences in a blog post for ease of reading?

Given this phrasing in the lease, when should I pay my rent?

Ways of geometrical multiplication

Is there a RAID 0 Equivalent for RAM?

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

Anime with legendary swords made from talismans and a man who could change them with a shattered body

How to preserve electronics (computers, iPads and phones) for hundreds of years

Is there a distance limit for minecart tracks?

How can I safely use "Thalidomide" in my novel while respecting the trademark?

Echo with obfuscation

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

How do I fix the group tension caused by my character stealing and possibly killing without provocation?

Why do Radio Buttons not fill the entire outer circle?

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Difference between shutdown options

Why does the Persian emissary display a string of crowned skulls?

Can you identify this lizard-like creature I observed in the UK?

Air travel with refrigerated insulin

What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?

How do I tell my boss that I'm quitting in 15 days (a colleague left this week)

What is the meaning of the following sentence?

Can I cause damage to electrical appliances by unplugging them when they are turned on?

Why is participating in the European Parliamentary elections used as a threat?

Is it feasible to let a newcomer play the "Gandalf"-like figure I created for my campaign?



Draw multiple arrows from one node to many others using a palette of colors


Draw a set of arrows using a palette of colorsHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?Highlight overlap between nodes and draw arrow from node edgeDraw arrows between nodes with tikzDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingWhy does my arrow head size decrease?how to draw 'inhibitory' arrow in latex tikz?Use hsb color modelDraw a set of arrows using a palette of colors













1















This is a continuation of a previous question: Draw a set of arrows using a palette of colors.



What I want



I want to draw multiple arrows starting from one node to more than one. Each arrow that starts in the same node must have the same color; but another node must have the following color (with its arrows of the same color), and so on.



You have to achieve the following in the most automatically possible way:



What I want



What I have done



This MWE is adapted for a better manipulation of the answer to that question:



documentclassarticle

usepackagetikz

newcommandtotalnodes5 % Define the total of nodes-1

begindocument

begintikzpicture % From https://tex.stackexchange.com/a/480466/152550
foreach X in 0,...,totalnodes
node[circle,draw,name=aX] at (0,X) ;
node[circle,draw,name=bX] at (1,X) ;
% [actual node] * [0.75 (limits the final color to purple)] * 1/totalsubjects
pgfmathsetmacrohuenumX*0.75*(1/totalnodes)
definecolormycolorhsbhuenum,1,1
draw[-latex,mycolor] (aX) to (bX);

endtikzpicture

enddocument


What I have done



As you can see, I am not able to find an algorithm capable of adding more arrows that come from the same node.



My idea was to make a recursive algorithm that goes through some of the nodes in which I wanted to get the arrow, but I do not know how to jump from node 0 to 2 and then to 5 and so on.



For example, to start with something I tried to change draw[-latex,mycolor] (aX) to (bX); to draw[-latex,mycolor] (aX) to (b$X-0$); (new line) draw[-latex,mycolor] (aX) to (b$X-1$); (new line) draw[-latex,mycolor] (aX) to (b$X-2$); etc. but the compiler gives errors (as expected).



Thanks!!










share|improve this question


























    1















    This is a continuation of a previous question: Draw a set of arrows using a palette of colors.



    What I want



    I want to draw multiple arrows starting from one node to more than one. Each arrow that starts in the same node must have the same color; but another node must have the following color (with its arrows of the same color), and so on.



    You have to achieve the following in the most automatically possible way:



    What I want



    What I have done



    This MWE is adapted for a better manipulation of the answer to that question:



    documentclassarticle

    usepackagetikz

    newcommandtotalnodes5 % Define the total of nodes-1

    begindocument

    begintikzpicture % From https://tex.stackexchange.com/a/480466/152550
    foreach X in 0,...,totalnodes
    node[circle,draw,name=aX] at (0,X) ;
    node[circle,draw,name=bX] at (1,X) ;
    % [actual node] * [0.75 (limits the final color to purple)] * 1/totalsubjects
    pgfmathsetmacrohuenumX*0.75*(1/totalnodes)
    definecolormycolorhsbhuenum,1,1
    draw[-latex,mycolor] (aX) to (bX);

    endtikzpicture

    enddocument


    What I have done



    As you can see, I am not able to find an algorithm capable of adding more arrows that come from the same node.



    My idea was to make a recursive algorithm that goes through some of the nodes in which I wanted to get the arrow, but I do not know how to jump from node 0 to 2 and then to 5 and so on.



    For example, to start with something I tried to change draw[-latex,mycolor] (aX) to (bX); to draw[-latex,mycolor] (aX) to (b$X-0$); (new line) draw[-latex,mycolor] (aX) to (b$X-1$); (new line) draw[-latex,mycolor] (aX) to (b$X-2$); etc. but the compiler gives errors (as expected).



    Thanks!!










    share|improve this question
























      1












      1








      1








      This is a continuation of a previous question: Draw a set of arrows using a palette of colors.



      What I want



      I want to draw multiple arrows starting from one node to more than one. Each arrow that starts in the same node must have the same color; but another node must have the following color (with its arrows of the same color), and so on.



      You have to achieve the following in the most automatically possible way:



      What I want



      What I have done



      This MWE is adapted for a better manipulation of the answer to that question:



      documentclassarticle

      usepackagetikz

      newcommandtotalnodes5 % Define the total of nodes-1

      begindocument

      begintikzpicture % From https://tex.stackexchange.com/a/480466/152550
      foreach X in 0,...,totalnodes
      node[circle,draw,name=aX] at (0,X) ;
      node[circle,draw,name=bX] at (1,X) ;
      % [actual node] * [0.75 (limits the final color to purple)] * 1/totalsubjects
      pgfmathsetmacrohuenumX*0.75*(1/totalnodes)
      definecolormycolorhsbhuenum,1,1
      draw[-latex,mycolor] (aX) to (bX);

      endtikzpicture

      enddocument


      What I have done



      As you can see, I am not able to find an algorithm capable of adding more arrows that come from the same node.



      My idea was to make a recursive algorithm that goes through some of the nodes in which I wanted to get the arrow, but I do not know how to jump from node 0 to 2 and then to 5 and so on.



      For example, to start with something I tried to change draw[-latex,mycolor] (aX) to (bX); to draw[-latex,mycolor] (aX) to (b$X-0$); (new line) draw[-latex,mycolor] (aX) to (b$X-1$); (new line) draw[-latex,mycolor] (aX) to (b$X-2$); etc. but the compiler gives errors (as expected).



      Thanks!!










      share|improve this question














      This is a continuation of a previous question: Draw a set of arrows using a palette of colors.



      What I want



      I want to draw multiple arrows starting from one node to more than one. Each arrow that starts in the same node must have the same color; but another node must have the following color (with its arrows of the same color), and so on.



      You have to achieve the following in the most automatically possible way:



      What I want



      What I have done



      This MWE is adapted for a better manipulation of the answer to that question:



      documentclassarticle

      usepackagetikz

      newcommandtotalnodes5 % Define the total of nodes-1

      begindocument

      begintikzpicture % From https://tex.stackexchange.com/a/480466/152550
      foreach X in 0,...,totalnodes
      node[circle,draw,name=aX] at (0,X) ;
      node[circle,draw,name=bX] at (1,X) ;
      % [actual node] * [0.75 (limits the final color to purple)] * 1/totalsubjects
      pgfmathsetmacrohuenumX*0.75*(1/totalnodes)
      definecolormycolorhsbhuenum,1,1
      draw[-latex,mycolor] (aX) to (bX);

      endtikzpicture

      enddocument


      What I have done



      As you can see, I am not able to find an algorithm capable of adding more arrows that come from the same node.



      My idea was to make a recursive algorithm that goes through some of the nodes in which I wanted to get the arrow, but I do not know how to jump from node 0 to 2 and then to 5 and so on.



      For example, to start with something I tried to change draw[-latex,mycolor] (aX) to (bX); to draw[-latex,mycolor] (aX) to (b$X-0$); (new line) draw[-latex,mycolor] (aX) to (b$X-1$); (new line) draw[-latex,mycolor] (aX) to (b$X-2$); etc. but the compiler gives errors (as expected).



      Thanks!!







      tikz-pgf errors color






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 mins ago









      manoooohmanooooh

      1,0661516




      1,0661516




















          0






          active

          oldest

          votes











          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%2f480622%2fdraw-multiple-arrows-from-one-node-to-many-others-using-a-palette-of-colors%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f480622%2fdraw-multiple-arrows-from-one-node-to-many-others-using-a-palette-of-colors%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 should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

          152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

          Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"