4 tikzpictures in a 2x2 layoutRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionAdjusting edge alignment and positioning of fitted nodeDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturesHow to place nodes in an absolute coordinate system in tikzhow to place tikzpicture from left edge of paper
How could a scammer know the apps on my phone / iTunes account?
What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?
Is "upgrade" the right word to use in this context?
Why no Iridium-level flares from other satellites?
Simplify an interface for flexibly applying rules to periods of time
Why one should not leave fingerprints on bulbs and plugs?
ERC721: How to get the owned tokens of an address
Have the tides ever turned twice on any open problem?
Can I use USB data pins as power source
Instead of a Universal Basic Income program, why not implement a "Universal Basic Needs" program?
Why does energy conservation give me the wrong answer in this inelastic collision problem?
Meme-controlled people
Happy pi day, everyone!
Employee lack of ownership
Describing a chess game in a novel
Brexit - No Deal Rejection
Passing arguments from one script to another
Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?
Is there a symmetric-key algorithm which we can use for creating a signature?
Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible
How to pronounce "I ♥ Huckabees"?
How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?
Are relativity and doppler effect related?
My adviser wants to be the first author
4 tikzpictures in a 2x2 layout
Rotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionAdjusting edge alignment and positioning of fitted nodeDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturesHow to place nodes in an absolute coordinate system in tikzhow to place tikzpicture from left edge of paper
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
enddocument
The above MWE generates a mapping diagram.
I am trying to create a 2x2 groupplot
of the above function mapping diagram.
I have used the groupplot
environment on previous occasions with great success (when using graphs on a Cartesian plane); via the addplot
command.
However, using the TikZ commands for the function mapping diagrams, all I can generate are 4 boxes with tick marks around them.
tikz-pgf groupplots
add a comment |
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
enddocument
The above MWE generates a mapping diagram.
I am trying to create a 2x2 groupplot
of the above function mapping diagram.
I have used the groupplot
environment on previous occasions with great success (when using graphs on a Cartesian plane); via the addplot
command.
However, using the TikZ commands for the function mapping diagrams, all I can generate are 4 boxes with tick marks around them.
tikz-pgf groupplots
Could you provide a MWE, which include the document class, please?
– manooooh
yesterday
add a comment |
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
enddocument
The above MWE generates a mapping diagram.
I am trying to create a 2x2 groupplot
of the above function mapping diagram.
I have used the groupplot
environment on previous occasions with great success (when using graphs on a Cartesian plane); via the addplot
command.
However, using the TikZ commands for the function mapping diagrams, all I can generate are 4 boxes with tick marks around them.
tikz-pgf groupplots
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
enddocument
The above MWE generates a mapping diagram.
I am trying to create a 2x2 groupplot
of the above function mapping diagram.
I have used the groupplot
environment on previous occasions with great success (when using graphs on a Cartesian plane); via the addplot
command.
However, using the TikZ commands for the function mapping diagrams, all I can generate are 4 boxes with tick marks around them.
tikz-pgf groupplots
tikz-pgf groupplots
edited yesterday
Anthony Macks
asked yesterday
Anthony MacksAnthony Macks
1378
1378
Could you provide a MWE, which include the document class, please?
– manooooh
yesterday
add a comment |
Could you provide a MWE, which include the document class, please?
– manooooh
yesterday
Could you provide a MWE, which include the document class, please?
– manooooh
yesterday
Could you provide a MWE, which include the document class, please?
– manooooh
yesterday
add a comment |
2 Answers
2
active
oldest
votes
Personally, I like to use the subfig package inside a figure.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
usepackagehere
usepackagesubfig
begindocument
beginfigure[H]
centering
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endfigure
enddocument
Thanks guys. I am going to add captioning, so I will use the subfig version.
– Anthony Macks
yesterday
add a comment |
A tikzpicture
is like a char
, you can organize them as you want. In this particular case, I've used a tabular
to place them 2x2.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintabularcc
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
\
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endtabular
enddocument
add a comment |
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%2f479580%2f4-tikzpictures-in-a-2x2-layout%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
Personally, I like to use the subfig package inside a figure.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
usepackagehere
usepackagesubfig
begindocument
beginfigure[H]
centering
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endfigure
enddocument
Thanks guys. I am going to add captioning, so I will use the subfig version.
– Anthony Macks
yesterday
add a comment |
Personally, I like to use the subfig package inside a figure.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
usepackagehere
usepackagesubfig
begindocument
beginfigure[H]
centering
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endfigure
enddocument
Thanks guys. I am going to add captioning, so I will use the subfig version.
– Anthony Macks
yesterday
add a comment |
Personally, I like to use the subfig package inside a figure.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
usepackagehere
usepackagesubfig
begindocument
beginfigure[H]
centering
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endfigure
enddocument
Personally, I like to use the subfig package inside a figure.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
usepackagehere
usepackagesubfig
begindocument
beginfigure[H]
centering
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
subfloat
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endfigure
enddocument
answered yesterday
rpaparpapa
8,60112039
8,60112039
Thanks guys. I am going to add captioning, so I will use the subfig version.
– Anthony Macks
yesterday
add a comment |
Thanks guys. I am going to add captioning, so I will use the subfig version.
– Anthony Macks
yesterday
Thanks guys. I am going to add captioning, so I will use the subfig version.
– Anthony Macks
yesterday
Thanks guys. I am going to add captioning, so I will use the subfig version.
– Anthony Macks
yesterday
add a comment |
A tikzpicture
is like a char
, you can organize them as you want. In this particular case, I've used a tabular
to place them 2x2.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintabularcc
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
\
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endtabular
enddocument
add a comment |
A tikzpicture
is like a char
, you can organize them as you want. In this particular case, I've used a tabular
to place them 2x2.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintabularcc
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
\
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endtabular
enddocument
add a comment |
A tikzpicture
is like a char
, you can organize them as you want. In this particular case, I've used a tabular
to place them 2x2.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintabularcc
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
\
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endtabular
enddocument
A tikzpicture
is like a char
, you can organize them as you want. In this particular case, I've used a tabular
to place them 2x2.
documentclassarticle
usepackagepgfplots
usetikzlibraryfit,shapes,positioning
begindocument
begintabularcc
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
\
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
&
begintikzpicture[
mydot/.style= circle, fill, inner sep=2pt , >=latex,
shorten >= 3pt, shorten <= 3pt,
every fit/.style=ellipse,draw,inner sep=0pt
]
node[mydot,label=left:1] (a1) ;
node[mydot,below=of a1,label=left:2] (a2) ;
node[mydot,below=of a2,label=left:3] (a3) ;
node[mydot,below=of a3,label=left:4] (a4) ;
node[mydot,right=4cm of a1,label=right:1] (b1) ;
node[mydot,below=of b1,label=right:2] (b2) ;
node[mydot,below=of b2,label=right:3] (b3) ;
node[mydot,below=of b3,label=right:4] (b4) ;
node[draw,fit=(a1) (a2) (a3) (a4),minimum width=2cm] ;
node[draw,fit=(b1) (b2) (b3) (b4),minimum width=2cm] ;
path[->] (a1) edge (b2) edge (b1);
path[->] (a2) edge (b4);
path[->] (a3) edge (b3);
path[<-] (a4) edge (b1);
endtikzpicture
endtabular
enddocument
answered yesterday
IgnasiIgnasi
94.8k4175318
94.8k4175318
add a comment |
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%2f479580%2f4-tikzpictures-in-a-2x2-layout%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
Could you provide a MWE, which include the document class, please?
– manooooh
yesterday