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
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 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
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
add a comment |
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 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
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
add a comment |
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 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
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
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 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
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
tikz-pgf errors color
asked 12 mins ago
manoooohmanooooh
1,0661516
1,0661516
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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