TikZ: How to fill area with a special pattern? The Next CEO of Stack OverflowRandomly curved arrows in TikZHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Tikz fill double line with pattern not with colorHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingOverwriting fill patterns in TikZCustom fill pattern in a gradientTikz : rotate a fill patternFill area between curves with tikzfillbetweenTikz: custom text as fill pattern for shapes
Deriving the equation for variance
What happened in Rome, when the western empire "fell"?
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
Does destroying a Lich's phylactery destroy the soul within it?
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
Inexact numbers as keys in Association?
Regression vs Random Forest - Combination of features
Define command that accepts \ in arguments
Is it ever safe to open a suspicious HTML file (e.g. email attachment)?
How to set page number in right side in chapter title page?
Is it okay to majorly distort historical facts while writing a fiction story?
What was the first Unix version to run on a microcomputer?
Yu-Gi-Oh cards in Python 3
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Is "three point ish" an acceptable use of ish?
Is there a reasonable and studied concept of reduction between regular languages?
What can the phrase “is embedded in a whale of a bill” mean?
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Purpose of level-shifter with same in and out voltages
Can I calculate next year's exemptions based on this year's refund/amount owed?
Pulling the principal components out of a DimensionReducerFunction?
Defamation due to breach of confidentiality
Ubuntu - "sudo iptables" command works in terminal, doesn't work in bash script
Aggressive Under-Indexing and no data for missing index
TikZ: How to fill area with a special pattern?
The Next CEO of Stack OverflowRandomly curved arrows in TikZHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Tikz fill double line with pattern not with colorHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingOverwriting fill patterns in TikZCustom fill pattern in a gradientTikz : rotate a fill patternFill area between curves with tikzfillbetweenTikz: custom text as fill pattern for shapes
I want to visualize a turbulent flow regime. Assumed we have a simple empty square that should be filled with a pattern.
Minimum Working Example (MWE):
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
draw (0, 0) rectangle (4, 4);
endtikzpicture
enddocument
I won't post a screenshot, because it is just a simple rectangle. :-)
How can I fill this rectangle with a pattern like this on the right side:

Or, for the advanced TeX-users: How to fill it with a pattern like this one (made of random arrows)?

Thanks to marmot: As you can see, the arrows never intersect - this seems to be a challenge.
tikz-pgf tikz-arrows draw fill pattern
add a comment |
I want to visualize a turbulent flow regime. Assumed we have a simple empty square that should be filled with a pattern.
Minimum Working Example (MWE):
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
draw (0, 0) rectangle (4, 4);
endtikzpicture
enddocument
I won't post a screenshot, because it is just a simple rectangle. :-)
How can I fill this rectangle with a pattern like this on the right side:

Or, for the advanced TeX-users: How to fill it with a pattern like this one (made of random arrows)?

Thanks to marmot: As you can see, the arrows never intersect - this seems to be a challenge.
tikz-pgf tikz-arrows draw fill pattern
Here is a question on randomly curved arrows. It is not difficult to draw random arrows, but if I interpret your question correctly, they should not intersect. Avoiding intersections is probably more efforts. So I wish to clarify: you do not want the arrows to intersect?
– marmot
3 hours ago
@marmot: Thanks for your comment - you are completely right! The arrows should not intersect, because the fluid can not cross in reality.
– Dave
3 hours ago
1
As a proof of concept, I'm very interested in how this can be coded (+1 to mamot, indeed) but from a practical point of view (time and result quality) I would do it manually in Inkscape.
– Fran
2 hours ago
@Fran: I took me the whole weekend to put and adjust some spirals into mytikzpicture. Therefore I am curious if there is a better solution available for it.
– Dave
2 hours ago
add a comment |
I want to visualize a turbulent flow regime. Assumed we have a simple empty square that should be filled with a pattern.
Minimum Working Example (MWE):
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
draw (0, 0) rectangle (4, 4);
endtikzpicture
enddocument
I won't post a screenshot, because it is just a simple rectangle. :-)
How can I fill this rectangle with a pattern like this on the right side:

Or, for the advanced TeX-users: How to fill it with a pattern like this one (made of random arrows)?

Thanks to marmot: As you can see, the arrows never intersect - this seems to be a challenge.
tikz-pgf tikz-arrows draw fill pattern
I want to visualize a turbulent flow regime. Assumed we have a simple empty square that should be filled with a pattern.
Minimum Working Example (MWE):
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
draw (0, 0) rectangle (4, 4);
endtikzpicture
enddocument
I won't post a screenshot, because it is just a simple rectangle. :-)
How can I fill this rectangle with a pattern like this on the right side:

Or, for the advanced TeX-users: How to fill it with a pattern like this one (made of random arrows)?

Thanks to marmot: As you can see, the arrows never intersect - this seems to be a challenge.
tikz-pgf tikz-arrows draw fill pattern
tikz-pgf tikz-arrows draw fill pattern
edited 3 hours ago
Dave
asked 4 hours ago
DaveDave
1,000619
1,000619
Here is a question on randomly curved arrows. It is not difficult to draw random arrows, but if I interpret your question correctly, they should not intersect. Avoiding intersections is probably more efforts. So I wish to clarify: you do not want the arrows to intersect?
– marmot
3 hours ago
@marmot: Thanks for your comment - you are completely right! The arrows should not intersect, because the fluid can not cross in reality.
– Dave
3 hours ago
1
As a proof of concept, I'm very interested in how this can be coded (+1 to mamot, indeed) but from a practical point of view (time and result quality) I would do it manually in Inkscape.
– Fran
2 hours ago
@Fran: I took me the whole weekend to put and adjust some spirals into mytikzpicture. Therefore I am curious if there is a better solution available for it.
– Dave
2 hours ago
add a comment |
Here is a question on randomly curved arrows. It is not difficult to draw random arrows, but if I interpret your question correctly, they should not intersect. Avoiding intersections is probably more efforts. So I wish to clarify: you do not want the arrows to intersect?
– marmot
3 hours ago
@marmot: Thanks for your comment - you are completely right! The arrows should not intersect, because the fluid can not cross in reality.
– Dave
3 hours ago
1
As a proof of concept, I'm very interested in how this can be coded (+1 to mamot, indeed) but from a practical point of view (time and result quality) I would do it manually in Inkscape.
– Fran
2 hours ago
@Fran: I took me the whole weekend to put and adjust some spirals into mytikzpicture. Therefore I am curious if there is a better solution available for it.
– Dave
2 hours ago
Here is a question on randomly curved arrows. It is not difficult to draw random arrows, but if I interpret your question correctly, they should not intersect. Avoiding intersections is probably more efforts. So I wish to clarify: you do not want the arrows to intersect?
– marmot
3 hours ago
Here is a question on randomly curved arrows. It is not difficult to draw random arrows, but if I interpret your question correctly, they should not intersect. Avoiding intersections is probably more efforts. So I wish to clarify: you do not want the arrows to intersect?
– marmot
3 hours ago
@marmot: Thanks for your comment - you are completely right! The arrows should not intersect, because the fluid can not cross in reality.
– Dave
3 hours ago
@marmot: Thanks for your comment - you are completely right! The arrows should not intersect, because the fluid can not cross in reality.
– Dave
3 hours ago
1
1
As a proof of concept, I'm very interested in how this can be coded (+1 to mamot, indeed) but from a practical point of view (time and result quality) I would do it manually in Inkscape.
– Fran
2 hours ago
As a proof of concept, I'm very interested in how this can be coded (+1 to mamot, indeed) but from a practical point of view (time and result quality) I would do it manually in Inkscape.
– Fran
2 hours ago
@Fran: I took me the whole weekend to put and adjust some spirals into my
tikzpicture. Therefore I am curious if there is a better solution available for it.– Dave
2 hours ago
@Fran: I took me the whole weekend to put and adjust some spirals into my
tikzpicture. Therefore I am curious if there is a better solution available for it.– Dave
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
This is an answer to the question
How can one draw some randomly curved arrows that do not intersect?
which is not to be confused with
How can I draw the velocity field of some fluid?
which may require a model, a solution of the Navier-Stokes equations or something of that sort. That is, forbidding intersections is a step in the right direction but does not yield a physical description. If you do have the parametrization a realistic turbulent velocity field, you can do much better.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections,arrows.meta,bending
newcounterrandarcs
begindocument
begintikzpicture
%draw[clip] (0,0) rectangle (4,4);
pgfmathsetseed21
foreach X in 1,...,50
pgfmathsetmacromyx-0.5+5*rnd
pgfmathsetmacromyy-0.5+5*rnd
pgfmathsetmacroangA360*rnd
pgfmathsetmacroradA0.3+0.3*rnd
pgfmathsetmacromyxpmyx+radA*cos(angA)
pgfmathsetmacromyypmyy+radA*sin(angA)
pgfmathsetmacroangBangA-75+150*rnd
pgfmathsetmacroradBradA-0.1+0.2*rnd
pgfmathsetmacromyxqmyxp+radB*cos(angB)
pgfmathsetmacromyyqmyyp+radB*sin(angB)
pgfmathsetmacroangCangB-45+90*rnd
pgfmathsetmacroradCradB-0.1+0.2*rnd
pgfmathsetmacromyxrmyxq+radB*cos(angC)
pgfmathsetmacromyyrmyyq+radB*sin(angC)
%typeoutangA,radA;angB,radB
path[-Latex,name path=test-arc] plot[smooth,tension=1]
coordinates (myx,myy) (myxp,myyp) (myxq,myyq) (myxr,myyr) ;
defHasIntersection0
ifnumX>1
foreach Y in 1,...,numbervaluerandarcs
path[name intersections=of=Y-arc and test-arc,total=t,
/utils/exec=ifnumt>0
xdefHasIntersection1%typeoutintersects
fi];
fi
ifnumHasIntersection=0
stepcounterrandarcs
draw[-Latex[bend]]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr);
path[name path global=numbervaluerandarcs-arc]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr) -- cycle;
fi
endtikzpicture
typeoutnumbervaluerandarcsspace arcsspace drawn.
enddocument

Awesome, thank you very much! :-) Would it be possible to get the arrows a bit more "smooth"? They seem to be very edgy.
– Dave
2 hours ago
@Dave I changed some parameters. In addition, you can play with tension. E.g. replace alltension=1withtension=1.6. It also helps to play withpgfmathsetseed21.
– marmot
2 hours ago
add a comment |
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');
);
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%2f482462%2ftikz-how-to-fill-area-with-a-special-pattern%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is an answer to the question
How can one draw some randomly curved arrows that do not intersect?
which is not to be confused with
How can I draw the velocity field of some fluid?
which may require a model, a solution of the Navier-Stokes equations or something of that sort. That is, forbidding intersections is a step in the right direction but does not yield a physical description. If you do have the parametrization a realistic turbulent velocity field, you can do much better.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections,arrows.meta,bending
newcounterrandarcs
begindocument
begintikzpicture
%draw[clip] (0,0) rectangle (4,4);
pgfmathsetseed21
foreach X in 1,...,50
pgfmathsetmacromyx-0.5+5*rnd
pgfmathsetmacromyy-0.5+5*rnd
pgfmathsetmacroangA360*rnd
pgfmathsetmacroradA0.3+0.3*rnd
pgfmathsetmacromyxpmyx+radA*cos(angA)
pgfmathsetmacromyypmyy+radA*sin(angA)
pgfmathsetmacroangBangA-75+150*rnd
pgfmathsetmacroradBradA-0.1+0.2*rnd
pgfmathsetmacromyxqmyxp+radB*cos(angB)
pgfmathsetmacromyyqmyyp+radB*sin(angB)
pgfmathsetmacroangCangB-45+90*rnd
pgfmathsetmacroradCradB-0.1+0.2*rnd
pgfmathsetmacromyxrmyxq+radB*cos(angC)
pgfmathsetmacromyyrmyyq+radB*sin(angC)
%typeoutangA,radA;angB,radB
path[-Latex,name path=test-arc] plot[smooth,tension=1]
coordinates (myx,myy) (myxp,myyp) (myxq,myyq) (myxr,myyr) ;
defHasIntersection0
ifnumX>1
foreach Y in 1,...,numbervaluerandarcs
path[name intersections=of=Y-arc and test-arc,total=t,
/utils/exec=ifnumt>0
xdefHasIntersection1%typeoutintersects
fi];
fi
ifnumHasIntersection=0
stepcounterrandarcs
draw[-Latex[bend]]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr);
path[name path global=numbervaluerandarcs-arc]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr) -- cycle;
fi
endtikzpicture
typeoutnumbervaluerandarcsspace arcsspace drawn.
enddocument

Awesome, thank you very much! :-) Would it be possible to get the arrows a bit more "smooth"? They seem to be very edgy.
– Dave
2 hours ago
@Dave I changed some parameters. In addition, you can play with tension. E.g. replace alltension=1withtension=1.6. It also helps to play withpgfmathsetseed21.
– marmot
2 hours ago
add a comment |
This is an answer to the question
How can one draw some randomly curved arrows that do not intersect?
which is not to be confused with
How can I draw the velocity field of some fluid?
which may require a model, a solution of the Navier-Stokes equations or something of that sort. That is, forbidding intersections is a step in the right direction but does not yield a physical description. If you do have the parametrization a realistic turbulent velocity field, you can do much better.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections,arrows.meta,bending
newcounterrandarcs
begindocument
begintikzpicture
%draw[clip] (0,0) rectangle (4,4);
pgfmathsetseed21
foreach X in 1,...,50
pgfmathsetmacromyx-0.5+5*rnd
pgfmathsetmacromyy-0.5+5*rnd
pgfmathsetmacroangA360*rnd
pgfmathsetmacroradA0.3+0.3*rnd
pgfmathsetmacromyxpmyx+radA*cos(angA)
pgfmathsetmacromyypmyy+radA*sin(angA)
pgfmathsetmacroangBangA-75+150*rnd
pgfmathsetmacroradBradA-0.1+0.2*rnd
pgfmathsetmacromyxqmyxp+radB*cos(angB)
pgfmathsetmacromyyqmyyp+radB*sin(angB)
pgfmathsetmacroangCangB-45+90*rnd
pgfmathsetmacroradCradB-0.1+0.2*rnd
pgfmathsetmacromyxrmyxq+radB*cos(angC)
pgfmathsetmacromyyrmyyq+radB*sin(angC)
%typeoutangA,radA;angB,radB
path[-Latex,name path=test-arc] plot[smooth,tension=1]
coordinates (myx,myy) (myxp,myyp) (myxq,myyq) (myxr,myyr) ;
defHasIntersection0
ifnumX>1
foreach Y in 1,...,numbervaluerandarcs
path[name intersections=of=Y-arc and test-arc,total=t,
/utils/exec=ifnumt>0
xdefHasIntersection1%typeoutintersects
fi];
fi
ifnumHasIntersection=0
stepcounterrandarcs
draw[-Latex[bend]]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr);
path[name path global=numbervaluerandarcs-arc]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr) -- cycle;
fi
endtikzpicture
typeoutnumbervaluerandarcsspace arcsspace drawn.
enddocument

Awesome, thank you very much! :-) Would it be possible to get the arrows a bit more "smooth"? They seem to be very edgy.
– Dave
2 hours ago
@Dave I changed some parameters. In addition, you can play with tension. E.g. replace alltension=1withtension=1.6. It also helps to play withpgfmathsetseed21.
– marmot
2 hours ago
add a comment |
This is an answer to the question
How can one draw some randomly curved arrows that do not intersect?
which is not to be confused with
How can I draw the velocity field of some fluid?
which may require a model, a solution of the Navier-Stokes equations or something of that sort. That is, forbidding intersections is a step in the right direction but does not yield a physical description. If you do have the parametrization a realistic turbulent velocity field, you can do much better.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections,arrows.meta,bending
newcounterrandarcs
begindocument
begintikzpicture
%draw[clip] (0,0) rectangle (4,4);
pgfmathsetseed21
foreach X in 1,...,50
pgfmathsetmacromyx-0.5+5*rnd
pgfmathsetmacromyy-0.5+5*rnd
pgfmathsetmacroangA360*rnd
pgfmathsetmacroradA0.3+0.3*rnd
pgfmathsetmacromyxpmyx+radA*cos(angA)
pgfmathsetmacromyypmyy+radA*sin(angA)
pgfmathsetmacroangBangA-75+150*rnd
pgfmathsetmacroradBradA-0.1+0.2*rnd
pgfmathsetmacromyxqmyxp+radB*cos(angB)
pgfmathsetmacromyyqmyyp+radB*sin(angB)
pgfmathsetmacroangCangB-45+90*rnd
pgfmathsetmacroradCradB-0.1+0.2*rnd
pgfmathsetmacromyxrmyxq+radB*cos(angC)
pgfmathsetmacromyyrmyyq+radB*sin(angC)
%typeoutangA,radA;angB,radB
path[-Latex,name path=test-arc] plot[smooth,tension=1]
coordinates (myx,myy) (myxp,myyp) (myxq,myyq) (myxr,myyr) ;
defHasIntersection0
ifnumX>1
foreach Y in 1,...,numbervaluerandarcs
path[name intersections=of=Y-arc and test-arc,total=t,
/utils/exec=ifnumt>0
xdefHasIntersection1%typeoutintersects
fi];
fi
ifnumHasIntersection=0
stepcounterrandarcs
draw[-Latex[bend]]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr);
path[name path global=numbervaluerandarcs-arc]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr) -- cycle;
fi
endtikzpicture
typeoutnumbervaluerandarcsspace arcsspace drawn.
enddocument

This is an answer to the question
How can one draw some randomly curved arrows that do not intersect?
which is not to be confused with
How can I draw the velocity field of some fluid?
which may require a model, a solution of the Navier-Stokes equations or something of that sort. That is, forbidding intersections is a step in the right direction but does not yield a physical description. If you do have the parametrization a realistic turbulent velocity field, you can do much better.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections,arrows.meta,bending
newcounterrandarcs
begindocument
begintikzpicture
%draw[clip] (0,0) rectangle (4,4);
pgfmathsetseed21
foreach X in 1,...,50
pgfmathsetmacromyx-0.5+5*rnd
pgfmathsetmacromyy-0.5+5*rnd
pgfmathsetmacroangA360*rnd
pgfmathsetmacroradA0.3+0.3*rnd
pgfmathsetmacromyxpmyx+radA*cos(angA)
pgfmathsetmacromyypmyy+radA*sin(angA)
pgfmathsetmacroangBangA-75+150*rnd
pgfmathsetmacroradBradA-0.1+0.2*rnd
pgfmathsetmacromyxqmyxp+radB*cos(angB)
pgfmathsetmacromyyqmyyp+radB*sin(angB)
pgfmathsetmacroangCangB-45+90*rnd
pgfmathsetmacroradCradB-0.1+0.2*rnd
pgfmathsetmacromyxrmyxq+radB*cos(angC)
pgfmathsetmacromyyrmyyq+radB*sin(angC)
%typeoutangA,radA;angB,radB
path[-Latex,name path=test-arc] plot[smooth,tension=1]
coordinates (myx,myy) (myxp,myyp) (myxq,myyq) (myxr,myyr) ;
defHasIntersection0
ifnumX>1
foreach Y in 1,...,numbervaluerandarcs
path[name intersections=of=Y-arc and test-arc,total=t,
/utils/exec=ifnumt>0
xdefHasIntersection1%typeoutintersects
fi];
fi
ifnumHasIntersection=0
stepcounterrandarcs
draw[-Latex[bend]]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr);
path[name path global=numbervaluerandarcs-arc]
plot[smooth,tension=1] coordinates (myx,myy) (myxp,myyp)
(myxq,myyq) (myxr,myyr) -- cycle;
fi
endtikzpicture
typeoutnumbervaluerandarcsspace arcsspace drawn.
enddocument

edited 2 hours ago
answered 3 hours ago
marmotmarmot
113k5145275
113k5145275
Awesome, thank you very much! :-) Would it be possible to get the arrows a bit more "smooth"? They seem to be very edgy.
– Dave
2 hours ago
@Dave I changed some parameters. In addition, you can play with tension. E.g. replace alltension=1withtension=1.6. It also helps to play withpgfmathsetseed21.
– marmot
2 hours ago
add a comment |
Awesome, thank you very much! :-) Would it be possible to get the arrows a bit more "smooth"? They seem to be very edgy.
– Dave
2 hours ago
@Dave I changed some parameters. In addition, you can play with tension. E.g. replace alltension=1withtension=1.6. It also helps to play withpgfmathsetseed21.
– marmot
2 hours ago
Awesome, thank you very much! :-) Would it be possible to get the arrows a bit more "smooth"? They seem to be very edgy.
– Dave
2 hours ago
Awesome, thank you very much! :-) Would it be possible to get the arrows a bit more "smooth"? They seem to be very edgy.
– Dave
2 hours ago
@Dave I changed some parameters. In addition, you can play with tension. E.g. replace all
tension=1 with tension=1.6. It also helps to play with pgfmathsetseed21.– marmot
2 hours ago
@Dave I changed some parameters. In addition, you can play with tension. E.g. replace all
tension=1 with tension=1.6. It also helps to play with pgfmathsetseed21.– marmot
2 hours ago
add a comment |
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');
);
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%2f482462%2ftikz-how-to-fill-area-with-a-special-pattern%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');
);
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');
);
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');
);
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

Here is a question on randomly curved arrows. It is not difficult to draw random arrows, but if I interpret your question correctly, they should not intersect. Avoiding intersections is probably more efforts. So I wish to clarify: you do not want the arrows to intersect?
– marmot
3 hours ago
@marmot: Thanks for your comment - you are completely right! The arrows should not intersect, because the fluid can not cross in reality.
– Dave
3 hours ago
1
As a proof of concept, I'm very interested in how this can be coded (+1 to mamot, indeed) but from a practical point of view (time and result quality) I would do it manually in Inkscape.
– Fran
2 hours ago
@Fran: I took me the whole weekend to put and adjust some spirals into my
tikzpicture. Therefore I am curious if there is a better solution available for it.– Dave
2 hours ago