Drawing 3 circle (diagram) in LatexTikZ: radial shading of a ringMultiple Arrows in TableDraw a circle node with a cross symbol inside it to resemble a multiplier of a signal modulatorReliability block diagramNumerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?TikZ: Drawing an arc from an intersection to an intersectionHow to draw the “sri-cakra” (sri-yantra") using Tikz?Line up nested tikz enviroments or how to get rid of themFrame around TikZ circle filled with image
Are modern clipless shoes and pedals that much better than toe clips and straps?
Round towards zero
Why did Khan ask Admiral James T. Kirk about Project Genesis?
Would the Republic of Ireland and Northern Ireland be interested in reuniting?
Numbers Decrease while Letters Increase
Algorithms vs LP or MIP
Does travel insurance for short flight delays exist?
Is there any way to keep a player from killing an NPC?
“T” in subscript in formulas
What does "set -x" do in a bash script?
How to determine car loan length as a function of how long I plan to keep a car
Nothing like a good ol' game of ModTen
Ensuring all network services on a device use strong TLS cipher suites
Is immersion of utensils (tevila) valid before koshering (hagala)?
How to respectfully refuse to assist co-workers with IT issues?
Dataset human solutions for OR problems
What do these triangles above and below the staff mean?
How much authority do teachers get from *In Loco Parentis*?
Are there any elected officials in the U.S. who are not legislators, judges, or constitutional officers?
I don't have the theoretical background in my PhD topic. I can't justify getting the degree
How should I face my manager if I make a mistake because a senior coworker explained something incorrectly to me?
Is gzip atomic?
How to find out the average duration of the peer-review process for a given journal?
Is a player able to change alignment midway through an adventure?
Drawing 3 circle (diagram) in Latex
TikZ: radial shading of a ringMultiple Arrows in TableDraw a circle node with a cross symbol inside it to resemble a multiplier of a signal modulatorReliability block diagramNumerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?TikZ: Drawing an arc from an intersection to an intersectionHow to draw the “sri-cakra” (sri-yantra") using Tikz?Line up nested tikz enviroments or how to get rid of themFrame around TikZ circle filled with image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am relatively new to diagram in latex.
Basically, I want to draw a diagram as shown below. It does not be exact same, but around that content.
usepackagetikz
begintikzpicture
draw (2,2) circle (3cm);
endtikzpicture
enter link description here
tikz-pgf diagrams
add a comment |
I am relatively new to diagram in latex.
Basically, I want to draw a diagram as shown below. It does not be exact same, but around that content.
usepackagetikz
begintikzpicture
draw (2,2) circle (3cm);
endtikzpicture
enter link description here
tikz-pgf diagrams
add a comment |
I am relatively new to diagram in latex.
Basically, I want to draw a diagram as shown below. It does not be exact same, but around that content.
usepackagetikz
begintikzpicture
draw (2,2) circle (3cm);
endtikzpicture
enter link description here
tikz-pgf diagrams
I am relatively new to diagram in latex.
Basically, I want to draw a diagram as shown below. It does not be exact same, but around that content.
usepackagetikz
begintikzpicture
draw (2,2) circle (3cm);
endtikzpicture
enter link description here
tikz-pgf diagrams
tikz-pgf diagrams
asked 8 hours ago
aanaan
2527 bronze badges
2527 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
None of this is difficult and most of the things have already been done somewhere. So all you need to do is to google and to patch the pieces from here and there together. The ring shading is from here, the fancy arrow
is from here and the rest is from the pgf manual.
documentclass[tikz,border=3mm]standalone
usetikzlibrarydecorations.pathreplacing,calc
makeatletter%https://tex.stackexchange.com/a/82432
pgfdeclareradialshading[tikz@ball]ringpgfpoint0cm0cm%
rgb(0cm)=(1,1,1);
rgb(0.719cm)=(1,1,1);
rgb(0.72cm)=(1,1,1);
color(0.9cm)=(tikz@ball!60)
tikzoptionring colorpgfutil@colorlettikz@ball#1deftikz@shadingringtikz@addmodetikz@mode@shadetrue
makeatother
begindocument
begintikzpicture[fancy arrow/.style=decorate,decoration= % https://tex.stackexchange.com/a/500018
show path construction,
curveto code=
draw[top color=blue!30,bottom color=blue]
let p1=($(tikzinputsegmentsupporta)-(tikzinputsegmentfirst)$) in
[/utils/exec=pgfmathsetmacromysignsign(x1)]
([yshift=-3.5pt]tikzinputsegmentfirst) .. controls
([yshift=-3.5pt]tikzinputsegmentsupporta) and ([yshift=-3.5pt]tikzinputsegmentsupportb)
..([yshift=-3.5pt,xshift=mysign*3pt]tikzinputsegmentlast)
-- ([yshift=-3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=-5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- (tikzinputsegmentlast)
-- ([yshift=5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
.. controls
([yshift=3.5pt]tikzinputsegmentsupportb) and ([yshift=3.5pt]tikzinputsegmentsupporta)
.. ([yshift=3.5pt]tikzinputsegmentfirst) -- cycle;,
pics/fancy circle/.style=code=
path[even odd rule,fill=#1!60,path picture=
draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west)
to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
]
circle[radius=pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius];
path[even odd rule,ring color=#1]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];,
fancy circle/radius/.initial=1.55cm,
pics/arr/.style=code=draw[#1,top color=#1!20,bottom color=#1]
(45:0.5) -- ++ (0.3,0) -- ++ (-45:0.5) -- ++(-135:0.5) --++ (-0.3,0)
-- ++ (45:0.5) -- cycle;]
%
path(-4,0) picfancy circle=blue node[font=largesffamily]AAA
(-2.7,0) picarr=blue
(0,0) picfancy circle=purple node[font=sffamily]Transformation
(1.3,0) picarr=purple
(4,0) picfancy circle=orange node[font=largesffamily]AAA ;
path (0,-2.5) node[top color=white,bottom color=green!30,rounded
corners=3pt,draw=green!40,font=sffamilyLarge,minimum height=1cm,
minimum width=2cm](H) HUMAN;
draw[fancy arrow] (H.east) to[out=0,in=0,looseness=1.5]++(0,1);
draw[fancy arrow] ([yshift=1cm]H.west)
to[out=180,in=180,looseness=1.5] (H.west);
endtikzpicture
enddocument
how do you cancel the shading in the circle? Thanks
– aan
6 hours ago
How can add into my document file? It seemed like standalone. I am usingdocumentclass[12pt,oneside]book
– aan
5 hours ago
1
@aan Just replacedocumentclass[tikz,border=3mm]standalone
bydocumentclass[12pt,oneside]book usepackagetikz
. To remove the shading of the circles, removepath[even odd rule,ring color=#1] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];
.
– Schrödinger's cat
5 hours ago
1
@aan It is,path picture= draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west) to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
. If you just want to draw a node in a circle, saynode[circle,draw,line width=5mm,minimum size=3.2cm]blabla at (<x>,<y>);
.
– Schrödinger's cat
5 hours ago
1
@aan You need to addbeginfigure
beforebegintikzpicture
andcaptionThis is a black box labelfig:fig_1endfigure
afterendtikzpicture
.
– Schrödinger's cat
4 hours ago
|
show 2 more comments
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');
);
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%2f505454%2fdrawing-3-circle-diagram-in-latex%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
None of this is difficult and most of the things have already been done somewhere. So all you need to do is to google and to patch the pieces from here and there together. The ring shading is from here, the fancy arrow
is from here and the rest is from the pgf manual.
documentclass[tikz,border=3mm]standalone
usetikzlibrarydecorations.pathreplacing,calc
makeatletter%https://tex.stackexchange.com/a/82432
pgfdeclareradialshading[tikz@ball]ringpgfpoint0cm0cm%
rgb(0cm)=(1,1,1);
rgb(0.719cm)=(1,1,1);
rgb(0.72cm)=(1,1,1);
color(0.9cm)=(tikz@ball!60)
tikzoptionring colorpgfutil@colorlettikz@ball#1deftikz@shadingringtikz@addmodetikz@mode@shadetrue
makeatother
begindocument
begintikzpicture[fancy arrow/.style=decorate,decoration= % https://tex.stackexchange.com/a/500018
show path construction,
curveto code=
draw[top color=blue!30,bottom color=blue]
let p1=($(tikzinputsegmentsupporta)-(tikzinputsegmentfirst)$) in
[/utils/exec=pgfmathsetmacromysignsign(x1)]
([yshift=-3.5pt]tikzinputsegmentfirst) .. controls
([yshift=-3.5pt]tikzinputsegmentsupporta) and ([yshift=-3.5pt]tikzinputsegmentsupportb)
..([yshift=-3.5pt,xshift=mysign*3pt]tikzinputsegmentlast)
-- ([yshift=-3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=-5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- (tikzinputsegmentlast)
-- ([yshift=5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
.. controls
([yshift=3.5pt]tikzinputsegmentsupportb) and ([yshift=3.5pt]tikzinputsegmentsupporta)
.. ([yshift=3.5pt]tikzinputsegmentfirst) -- cycle;,
pics/fancy circle/.style=code=
path[even odd rule,fill=#1!60,path picture=
draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west)
to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
]
circle[radius=pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius];
path[even odd rule,ring color=#1]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];,
fancy circle/radius/.initial=1.55cm,
pics/arr/.style=code=draw[#1,top color=#1!20,bottom color=#1]
(45:0.5) -- ++ (0.3,0) -- ++ (-45:0.5) -- ++(-135:0.5) --++ (-0.3,0)
-- ++ (45:0.5) -- cycle;]
%
path(-4,0) picfancy circle=blue node[font=largesffamily]AAA
(-2.7,0) picarr=blue
(0,0) picfancy circle=purple node[font=sffamily]Transformation
(1.3,0) picarr=purple
(4,0) picfancy circle=orange node[font=largesffamily]AAA ;
path (0,-2.5) node[top color=white,bottom color=green!30,rounded
corners=3pt,draw=green!40,font=sffamilyLarge,minimum height=1cm,
minimum width=2cm](H) HUMAN;
draw[fancy arrow] (H.east) to[out=0,in=0,looseness=1.5]++(0,1);
draw[fancy arrow] ([yshift=1cm]H.west)
to[out=180,in=180,looseness=1.5] (H.west);
endtikzpicture
enddocument
how do you cancel the shading in the circle? Thanks
– aan
6 hours ago
How can add into my document file? It seemed like standalone. I am usingdocumentclass[12pt,oneside]book
– aan
5 hours ago
1
@aan Just replacedocumentclass[tikz,border=3mm]standalone
bydocumentclass[12pt,oneside]book usepackagetikz
. To remove the shading of the circles, removepath[even odd rule,ring color=#1] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];
.
– Schrödinger's cat
5 hours ago
1
@aan It is,path picture= draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west) to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
. If you just want to draw a node in a circle, saynode[circle,draw,line width=5mm,minimum size=3.2cm]blabla at (<x>,<y>);
.
– Schrödinger's cat
5 hours ago
1
@aan You need to addbeginfigure
beforebegintikzpicture
andcaptionThis is a black box labelfig:fig_1endfigure
afterendtikzpicture
.
– Schrödinger's cat
4 hours ago
|
show 2 more comments
None of this is difficult and most of the things have already been done somewhere. So all you need to do is to google and to patch the pieces from here and there together. The ring shading is from here, the fancy arrow
is from here and the rest is from the pgf manual.
documentclass[tikz,border=3mm]standalone
usetikzlibrarydecorations.pathreplacing,calc
makeatletter%https://tex.stackexchange.com/a/82432
pgfdeclareradialshading[tikz@ball]ringpgfpoint0cm0cm%
rgb(0cm)=(1,1,1);
rgb(0.719cm)=(1,1,1);
rgb(0.72cm)=(1,1,1);
color(0.9cm)=(tikz@ball!60)
tikzoptionring colorpgfutil@colorlettikz@ball#1deftikz@shadingringtikz@addmodetikz@mode@shadetrue
makeatother
begindocument
begintikzpicture[fancy arrow/.style=decorate,decoration= % https://tex.stackexchange.com/a/500018
show path construction,
curveto code=
draw[top color=blue!30,bottom color=blue]
let p1=($(tikzinputsegmentsupporta)-(tikzinputsegmentfirst)$) in
[/utils/exec=pgfmathsetmacromysignsign(x1)]
([yshift=-3.5pt]tikzinputsegmentfirst) .. controls
([yshift=-3.5pt]tikzinputsegmentsupporta) and ([yshift=-3.5pt]tikzinputsegmentsupportb)
..([yshift=-3.5pt,xshift=mysign*3pt]tikzinputsegmentlast)
-- ([yshift=-3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=-5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- (tikzinputsegmentlast)
-- ([yshift=5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
.. controls
([yshift=3.5pt]tikzinputsegmentsupportb) and ([yshift=3.5pt]tikzinputsegmentsupporta)
.. ([yshift=3.5pt]tikzinputsegmentfirst) -- cycle;,
pics/fancy circle/.style=code=
path[even odd rule,fill=#1!60,path picture=
draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west)
to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
]
circle[radius=pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius];
path[even odd rule,ring color=#1]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];,
fancy circle/radius/.initial=1.55cm,
pics/arr/.style=code=draw[#1,top color=#1!20,bottom color=#1]
(45:0.5) -- ++ (0.3,0) -- ++ (-45:0.5) -- ++(-135:0.5) --++ (-0.3,0)
-- ++ (45:0.5) -- cycle;]
%
path(-4,0) picfancy circle=blue node[font=largesffamily]AAA
(-2.7,0) picarr=blue
(0,0) picfancy circle=purple node[font=sffamily]Transformation
(1.3,0) picarr=purple
(4,0) picfancy circle=orange node[font=largesffamily]AAA ;
path (0,-2.5) node[top color=white,bottom color=green!30,rounded
corners=3pt,draw=green!40,font=sffamilyLarge,minimum height=1cm,
minimum width=2cm](H) HUMAN;
draw[fancy arrow] (H.east) to[out=0,in=0,looseness=1.5]++(0,1);
draw[fancy arrow] ([yshift=1cm]H.west)
to[out=180,in=180,looseness=1.5] (H.west);
endtikzpicture
enddocument
how do you cancel the shading in the circle? Thanks
– aan
6 hours ago
How can add into my document file? It seemed like standalone. I am usingdocumentclass[12pt,oneside]book
– aan
5 hours ago
1
@aan Just replacedocumentclass[tikz,border=3mm]standalone
bydocumentclass[12pt,oneside]book usepackagetikz
. To remove the shading of the circles, removepath[even odd rule,ring color=#1] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];
.
– Schrödinger's cat
5 hours ago
1
@aan It is,path picture= draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west) to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
. If you just want to draw a node in a circle, saynode[circle,draw,line width=5mm,minimum size=3.2cm]blabla at (<x>,<y>);
.
– Schrödinger's cat
5 hours ago
1
@aan You need to addbeginfigure
beforebegintikzpicture
andcaptionThis is a black box labelfig:fig_1endfigure
afterendtikzpicture
.
– Schrödinger's cat
4 hours ago
|
show 2 more comments
None of this is difficult and most of the things have already been done somewhere. So all you need to do is to google and to patch the pieces from here and there together. The ring shading is from here, the fancy arrow
is from here and the rest is from the pgf manual.
documentclass[tikz,border=3mm]standalone
usetikzlibrarydecorations.pathreplacing,calc
makeatletter%https://tex.stackexchange.com/a/82432
pgfdeclareradialshading[tikz@ball]ringpgfpoint0cm0cm%
rgb(0cm)=(1,1,1);
rgb(0.719cm)=(1,1,1);
rgb(0.72cm)=(1,1,1);
color(0.9cm)=(tikz@ball!60)
tikzoptionring colorpgfutil@colorlettikz@ball#1deftikz@shadingringtikz@addmodetikz@mode@shadetrue
makeatother
begindocument
begintikzpicture[fancy arrow/.style=decorate,decoration= % https://tex.stackexchange.com/a/500018
show path construction,
curveto code=
draw[top color=blue!30,bottom color=blue]
let p1=($(tikzinputsegmentsupporta)-(tikzinputsegmentfirst)$) in
[/utils/exec=pgfmathsetmacromysignsign(x1)]
([yshift=-3.5pt]tikzinputsegmentfirst) .. controls
([yshift=-3.5pt]tikzinputsegmentsupporta) and ([yshift=-3.5pt]tikzinputsegmentsupportb)
..([yshift=-3.5pt,xshift=mysign*3pt]tikzinputsegmentlast)
-- ([yshift=-3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=-5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- (tikzinputsegmentlast)
-- ([yshift=5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
.. controls
([yshift=3.5pt]tikzinputsegmentsupportb) and ([yshift=3.5pt]tikzinputsegmentsupporta)
.. ([yshift=3.5pt]tikzinputsegmentfirst) -- cycle;,
pics/fancy circle/.style=code=
path[even odd rule,fill=#1!60,path picture=
draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west)
to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
]
circle[radius=pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius];
path[even odd rule,ring color=#1]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];,
fancy circle/radius/.initial=1.55cm,
pics/arr/.style=code=draw[#1,top color=#1!20,bottom color=#1]
(45:0.5) -- ++ (0.3,0) -- ++ (-45:0.5) -- ++(-135:0.5) --++ (-0.3,0)
-- ++ (45:0.5) -- cycle;]
%
path(-4,0) picfancy circle=blue node[font=largesffamily]AAA
(-2.7,0) picarr=blue
(0,0) picfancy circle=purple node[font=sffamily]Transformation
(1.3,0) picarr=purple
(4,0) picfancy circle=orange node[font=largesffamily]AAA ;
path (0,-2.5) node[top color=white,bottom color=green!30,rounded
corners=3pt,draw=green!40,font=sffamilyLarge,minimum height=1cm,
minimum width=2cm](H) HUMAN;
draw[fancy arrow] (H.east) to[out=0,in=0,looseness=1.5]++(0,1);
draw[fancy arrow] ([yshift=1cm]H.west)
to[out=180,in=180,looseness=1.5] (H.west);
endtikzpicture
enddocument
None of this is difficult and most of the things have already been done somewhere. So all you need to do is to google and to patch the pieces from here and there together. The ring shading is from here, the fancy arrow
is from here and the rest is from the pgf manual.
documentclass[tikz,border=3mm]standalone
usetikzlibrarydecorations.pathreplacing,calc
makeatletter%https://tex.stackexchange.com/a/82432
pgfdeclareradialshading[tikz@ball]ringpgfpoint0cm0cm%
rgb(0cm)=(1,1,1);
rgb(0.719cm)=(1,1,1);
rgb(0.72cm)=(1,1,1);
color(0.9cm)=(tikz@ball!60)
tikzoptionring colorpgfutil@colorlettikz@ball#1deftikz@shadingringtikz@addmodetikz@mode@shadetrue
makeatother
begindocument
begintikzpicture[fancy arrow/.style=decorate,decoration= % https://tex.stackexchange.com/a/500018
show path construction,
curveto code=
draw[top color=blue!30,bottom color=blue]
let p1=($(tikzinputsegmentsupporta)-(tikzinputsegmentfirst)$) in
[/utils/exec=pgfmathsetmacromysignsign(x1)]
([yshift=-3.5pt]tikzinputsegmentfirst) .. controls
([yshift=-3.5pt]tikzinputsegmentsupporta) and ([yshift=-3.5pt]tikzinputsegmentsupportb)
..([yshift=-3.5pt,xshift=mysign*3pt]tikzinputsegmentlast)
-- ([yshift=-3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=-5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- (tikzinputsegmentlast)
-- ([yshift=5.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
-- ([yshift=3.5pt,xshift=mysign*3.5pt]tikzinputsegmentlast)
.. controls
([yshift=3.5pt]tikzinputsegmentsupportb) and ([yshift=3.5pt]tikzinputsegmentsupporta)
.. ([yshift=3.5pt]tikzinputsegmentfirst) -- cycle;,
pics/fancy circle/.style=code=
path[even odd rule,fill=#1!60,path picture=
draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west)
to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
]
circle[radius=pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius];
path[even odd rule,ring color=#1]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius]
circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];,
fancy circle/radius/.initial=1.55cm,
pics/arr/.style=code=draw[#1,top color=#1!20,bottom color=#1]
(45:0.5) -- ++ (0.3,0) -- ++ (-45:0.5) -- ++(-135:0.5) --++ (-0.3,0)
-- ++ (45:0.5) -- cycle;]
%
path(-4,0) picfancy circle=blue node[font=largesffamily]AAA
(-2.7,0) picarr=blue
(0,0) picfancy circle=purple node[font=sffamily]Transformation
(1.3,0) picarr=purple
(4,0) picfancy circle=orange node[font=largesffamily]AAA ;
path (0,-2.5) node[top color=white,bottom color=green!30,rounded
corners=3pt,draw=green!40,font=sffamilyLarge,minimum height=1cm,
minimum width=2cm](H) HUMAN;
draw[fancy arrow] (H.east) to[out=0,in=0,looseness=1.5]++(0,1);
draw[fancy arrow] ([yshift=1cm]H.west)
to[out=180,in=180,looseness=1.5] (H.west);
endtikzpicture
enddocument
answered 7 hours ago


Schrödinger's catSchrödinger's cat
2,0713 silver badges10 bronze badges
2,0713 silver badges10 bronze badges
how do you cancel the shading in the circle? Thanks
– aan
6 hours ago
How can add into my document file? It seemed like standalone. I am usingdocumentclass[12pt,oneside]book
– aan
5 hours ago
1
@aan Just replacedocumentclass[tikz,border=3mm]standalone
bydocumentclass[12pt,oneside]book usepackagetikz
. To remove the shading of the circles, removepath[even odd rule,ring color=#1] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];
.
– Schrödinger's cat
5 hours ago
1
@aan It is,path picture= draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west) to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
. If you just want to draw a node in a circle, saynode[circle,draw,line width=5mm,minimum size=3.2cm]blabla at (<x>,<y>);
.
– Schrödinger's cat
5 hours ago
1
@aan You need to addbeginfigure
beforebegintikzpicture
andcaptionThis is a black box labelfig:fig_1endfigure
afterendtikzpicture
.
– Schrödinger's cat
4 hours ago
|
show 2 more comments
how do you cancel the shading in the circle? Thanks
– aan
6 hours ago
How can add into my document file? It seemed like standalone. I am usingdocumentclass[12pt,oneside]book
– aan
5 hours ago
1
@aan Just replacedocumentclass[tikz,border=3mm]standalone
bydocumentclass[12pt,oneside]book usepackagetikz
. To remove the shading of the circles, removepath[even odd rule,ring color=#1] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];
.
– Schrödinger's cat
5 hours ago
1
@aan It is,path picture= draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west) to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
. If you just want to draw a node in a circle, saynode[circle,draw,line width=5mm,minimum size=3.2cm]blabla at (<x>,<y>);
.
– Schrödinger's cat
5 hours ago
1
@aan You need to addbeginfigure
beforebegintikzpicture
andcaptionThis is a black box labelfig:fig_1endfigure
afterendtikzpicture
.
– Schrödinger's cat
4 hours ago
how do you cancel the shading in the circle? Thanks
– aan
6 hours ago
how do you cancel the shading in the circle? Thanks
– aan
6 hours ago
How can add into my document file? It seemed like standalone. I am using
documentclass[12pt,oneside]book
– aan
5 hours ago
How can add into my document file? It seemed like standalone. I am using
documentclass[12pt,oneside]book
– aan
5 hours ago
1
1
@aan Just replace
documentclass[tikz,border=3mm]standalone
by documentclass[12pt,oneside]book usepackagetikz
. To remove the shading of the circles, remove path[even odd rule,ring color=#1] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];
.– Schrödinger's cat
5 hours ago
@aan Just replace
documentclass[tikz,border=3mm]standalone
by documentclass[12pt,oneside]book usepackagetikz
. To remove the shading of the circles, remove path[even odd rule,ring color=#1] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius] circle[radius=0.8*pgfkeysvalueof/tikz/fancy circle/radius-1mm];
.– Schrödinger's cat
5 hours ago
1
1
@aan It is
,path picture= draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west) to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
. If you just want to draw a node in a circle, say node[circle,draw,line width=5mm,minimum size=3.2cm]blabla at (<x>,<y>);
.– Schrödinger's cat
5 hours ago
@aan It is
,path picture= draw[line width=6mm,#1!20] ([yshift=3mm]path picture bounding box.west) to[out=-20,in=-120] ([xshift=5mm]path picture bounding box.north);
. If you just want to draw a node in a circle, say node[circle,draw,line width=5mm,minimum size=3.2cm]blabla at (<x>,<y>);
.– Schrödinger's cat
5 hours ago
1
1
@aan You need to add
beginfigure
before begintikzpicture
and captionThis is a black box labelfig:fig_1endfigure
after endtikzpicture
.– Schrödinger's cat
4 hours ago
@aan You need to add
beginfigure
before begintikzpicture
and captionThis is a black box labelfig:fig_1endfigure
after endtikzpicture
.– Schrödinger's cat
4 hours ago
|
show 2 more comments
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%2f505454%2fdrawing-3-circle-diagram-in-latex%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