How to adjust Venn Diagram for A^c and A - BHow can I invert a 'clip' selection within TikZ?TikZ labelling venn diagramDrawing a Venn diagramvenn diagram with TikZHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionShading inside a triangle when the coordinates of one vertex are calculated by TikZDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themVenn diagram outlines
What happens when the drag force exceeds the weight of an object falling into earth?
The unknown and unexplained in science fiction
Why is the episode called "The Last of the Starks"?
I want to write a blog post building upon someone else's paper, how can I properly cite/credit them?
Two (probably) equal real numbers which are not proved to be equal?
Can a character shove an enemy who is already prone?
How could a civilization detect tachyons?
When an electron around an atom drops to a lower state, is 100% of the energy converted to a photon?
How can one see if an address is multisig?
Why doesn't increasing the temperature of something like wood or paper set them on fire?
Program for finding longest run of zeros from a list of 100 random integers which are either 0 or 1
Illegal assignment from Id to List
What is the Ancient One's mistake?
Is there an idiom that means "revealing a secret unintentionally"?
How to avoid making self and former employee look bad when reporting on fixing former employee's work?
Names of the Six Tastes
Whose birthyears are canonically established in the MCU?
My parents are Afghan
Mindfulness of Watching Youtube
What are these pads?
Sprout Reports plugin - How to output a Matrix field into a row
Gift for mentor after his thesis defense?
How can I test a shell script in a "safe environment" to avoid harm to my computer?
What is the oldest instrument ever?
How to adjust Venn Diagram for A^c and A - B
How can I invert a 'clip' selection within TikZ?TikZ labelling venn diagramDrawing a Venn diagramvenn diagram with TikZHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionShading inside a triangle when the coordinates of one vertex are calculated by TikZDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themVenn diagram outlines
How can I adjust this venn Diagram so it becomes like what I wrote on the Image below?
I need to Color the "M" rectangle on the third Diagram and to remove the intersection between A and B on the fourth one.
I am using the following codes:
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
draw[thick,fill=white] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node[above]$M$ (0,-1.5) node[below]$A^c$;
draw[frame=5pt];
endtikzpicture
begintikzpicture
draw[thick,save path=pathA,fill=gray] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$A - B$;
beginscope[on background layer]
pgfkeysinside/.list=pathB,shade=white
endscope
draw[frame=5pt];
endtikzpicture
And things are ending up this way:
I am sorry if I'm lacking any information, I am very new on LaTeX and I have been trying to do this for quite a while now.
Anyway, Thank you for your attention/help!
tikz-pgf draw venn-diagrams
New contributor
add a comment |
How can I adjust this venn Diagram so it becomes like what I wrote on the Image below?
I need to Color the "M" rectangle on the third Diagram and to remove the intersection between A and B on the fourth one.
I am using the following codes:
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
draw[thick,fill=white] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node[above]$M$ (0,-1.5) node[below]$A^c$;
draw[frame=5pt];
endtikzpicture
begintikzpicture
draw[thick,save path=pathA,fill=gray] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$A - B$;
beginscope[on background layer]
pgfkeysinside/.list=pathB,shade=white
endscope
draw[frame=5pt];
endtikzpicture
And things are ending up this way:
I am sorry if I'm lacking any information, I am very new on LaTeX and I have been trying to do this for quite a while now.
Anyway, Thank you for your attention/help!
tikz-pgf draw venn-diagrams
New contributor
Have a look at thevenndiagram
package; it obviates all this extra code.
– JPi
3 hours ago
add a comment |
How can I adjust this venn Diagram so it becomes like what I wrote on the Image below?
I need to Color the "M" rectangle on the third Diagram and to remove the intersection between A and B on the fourth one.
I am using the following codes:
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
draw[thick,fill=white] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node[above]$M$ (0,-1.5) node[below]$A^c$;
draw[frame=5pt];
endtikzpicture
begintikzpicture
draw[thick,save path=pathA,fill=gray] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$A - B$;
beginscope[on background layer]
pgfkeysinside/.list=pathB,shade=white
endscope
draw[frame=5pt];
endtikzpicture
And things are ending up this way:
I am sorry if I'm lacking any information, I am very new on LaTeX and I have been trying to do this for quite a while now.
Anyway, Thank you for your attention/help!
tikz-pgf draw venn-diagrams
New contributor
How can I adjust this venn Diagram so it becomes like what I wrote on the Image below?
I need to Color the "M" rectangle on the third Diagram and to remove the intersection between A and B on the fourth one.
I am using the following codes:
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
draw[thick,fill=white] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node[above]$M$ (0,-1.5) node[below]$A^c$;
draw[frame=5pt];
endtikzpicture
begintikzpicture
draw[thick,save path=pathA,fill=gray] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$A - B$;
beginscope[on background layer]
pgfkeysinside/.list=pathB,shade=white
endscope
draw[frame=5pt];
endtikzpicture
And things are ending up this way:
I am sorry if I'm lacking any information, I am very new on LaTeX and I have been trying to do this for quite a while now.
Anyway, Thank you for your attention/help!
tikz-pgf draw venn-diagrams
tikz-pgf draw venn-diagrams
New contributor
New contributor
New contributor
asked 4 hours ago
Matheus ChebliMatheus Chebli
312
312
New contributor
New contributor
Have a look at thevenndiagram
package; it obviates all this extra code.
– JPi
3 hours ago
add a comment |
Have a look at thevenndiagram
package; it obviates all this extra code.
– JPi
3 hours ago
Have a look at the
venndiagram
package; it obviates all this extra code.– JPi
3 hours ago
Have a look at the
venndiagram
package; it obviates all this extra code.– JPi
3 hours ago
add a comment |
1 Answer
1
active
oldest
votes
documentclassarticle
usepackagetikz
usetikzlibrarybackgrounds
% based on https://tex.stackexchange.com/a/12033/121799
tikzsetreverseclip/.style=insert path=(current bounding box.south west)rectangle
(current bounding box.north east) ,
use path/.code=pgfsetpath#1,%learned from Kpym
frame around/.style=insert path=
([xshift=-pgfkeysvalueof/tikz/frame
distance,yshift=-pgfkeysvalueof/tikz/frame distance]#1.south west) rectangle
([xshift=pgfkeysvalueof/tikz/frame
distance,yshift=pgfkeysvalueof/tikz/frame distance]#1.north east),
frame distance/.initial=5pt
begindocument
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
beginscope[local bounding box=TL]
draw[thick,fill=gray] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node$B$ circle[radius=1.5cm] (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acup B$;
endscope
%
beginscope[xshift=5.5cm,local bounding box=TR]
draw[thick,save path=pathA] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acap B$;
beginscope[on background layer]
pgfkeysinside/.list=pathA,pathB,shade=gray
endscope
endscope
%
beginscope[yshift=-4.5cm,local bounding box=BL]
draw[thick,fill=gray,even odd rule] (-0.5,0) node$A$ circle [radius=1.5cm]
(-2.5,-2) rectangle (2.5,2) node[below left]$M$;
endscope
%
beginscope[xshift=5.5cm,yshift=-4.5cm,local bounding box=BR]
pgfresetboundingbox
draw[thick,save path=pathC] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathD] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$ (0,-1.5) node[below]$A- B$;
pgfkeysnot inside=pathD
fill[gray,use path=pathC];
endscope
%
foreach X in TL,TR,BL,BR draw[frame around=X];
endtikzpicture
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
);
);
Matheus Chebli is a new contributor. Be nice, and check out our Code of Conduct.
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%2f489683%2fhow-to-adjust-venn-diagram-for-ac-and-a-b%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
documentclassarticle
usepackagetikz
usetikzlibrarybackgrounds
% based on https://tex.stackexchange.com/a/12033/121799
tikzsetreverseclip/.style=insert path=(current bounding box.south west)rectangle
(current bounding box.north east) ,
use path/.code=pgfsetpath#1,%learned from Kpym
frame around/.style=insert path=
([xshift=-pgfkeysvalueof/tikz/frame
distance,yshift=-pgfkeysvalueof/tikz/frame distance]#1.south west) rectangle
([xshift=pgfkeysvalueof/tikz/frame
distance,yshift=pgfkeysvalueof/tikz/frame distance]#1.north east),
frame distance/.initial=5pt
begindocument
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
beginscope[local bounding box=TL]
draw[thick,fill=gray] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node$B$ circle[radius=1.5cm] (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acup B$;
endscope
%
beginscope[xshift=5.5cm,local bounding box=TR]
draw[thick,save path=pathA] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acap B$;
beginscope[on background layer]
pgfkeysinside/.list=pathA,pathB,shade=gray
endscope
endscope
%
beginscope[yshift=-4.5cm,local bounding box=BL]
draw[thick,fill=gray,even odd rule] (-0.5,0) node$A$ circle [radius=1.5cm]
(-2.5,-2) rectangle (2.5,2) node[below left]$M$;
endscope
%
beginscope[xshift=5.5cm,yshift=-4.5cm,local bounding box=BR]
pgfresetboundingbox
draw[thick,save path=pathC] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathD] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$ (0,-1.5) node[below]$A- B$;
pgfkeysnot inside=pathD
fill[gray,use path=pathC];
endscope
%
foreach X in TL,TR,BL,BR draw[frame around=X];
endtikzpicture
enddocument
add a comment |
documentclassarticle
usepackagetikz
usetikzlibrarybackgrounds
% based on https://tex.stackexchange.com/a/12033/121799
tikzsetreverseclip/.style=insert path=(current bounding box.south west)rectangle
(current bounding box.north east) ,
use path/.code=pgfsetpath#1,%learned from Kpym
frame around/.style=insert path=
([xshift=-pgfkeysvalueof/tikz/frame
distance,yshift=-pgfkeysvalueof/tikz/frame distance]#1.south west) rectangle
([xshift=pgfkeysvalueof/tikz/frame
distance,yshift=pgfkeysvalueof/tikz/frame distance]#1.north east),
frame distance/.initial=5pt
begindocument
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
beginscope[local bounding box=TL]
draw[thick,fill=gray] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node$B$ circle[radius=1.5cm] (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acup B$;
endscope
%
beginscope[xshift=5.5cm,local bounding box=TR]
draw[thick,save path=pathA] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acap B$;
beginscope[on background layer]
pgfkeysinside/.list=pathA,pathB,shade=gray
endscope
endscope
%
beginscope[yshift=-4.5cm,local bounding box=BL]
draw[thick,fill=gray,even odd rule] (-0.5,0) node$A$ circle [radius=1.5cm]
(-2.5,-2) rectangle (2.5,2) node[below left]$M$;
endscope
%
beginscope[xshift=5.5cm,yshift=-4.5cm,local bounding box=BR]
pgfresetboundingbox
draw[thick,save path=pathC] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathD] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$ (0,-1.5) node[below]$A- B$;
pgfkeysnot inside=pathD
fill[gray,use path=pathC];
endscope
%
foreach X in TL,TR,BL,BR draw[frame around=X];
endtikzpicture
enddocument
add a comment |
documentclassarticle
usepackagetikz
usetikzlibrarybackgrounds
% based on https://tex.stackexchange.com/a/12033/121799
tikzsetreverseclip/.style=insert path=(current bounding box.south west)rectangle
(current bounding box.north east) ,
use path/.code=pgfsetpath#1,%learned from Kpym
frame around/.style=insert path=
([xshift=-pgfkeysvalueof/tikz/frame
distance,yshift=-pgfkeysvalueof/tikz/frame distance]#1.south west) rectangle
([xshift=pgfkeysvalueof/tikz/frame
distance,yshift=pgfkeysvalueof/tikz/frame distance]#1.north east),
frame distance/.initial=5pt
begindocument
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
beginscope[local bounding box=TL]
draw[thick,fill=gray] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node$B$ circle[radius=1.5cm] (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acup B$;
endscope
%
beginscope[xshift=5.5cm,local bounding box=TR]
draw[thick,save path=pathA] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acap B$;
beginscope[on background layer]
pgfkeysinside/.list=pathA,pathB,shade=gray
endscope
endscope
%
beginscope[yshift=-4.5cm,local bounding box=BL]
draw[thick,fill=gray,even odd rule] (-0.5,0) node$A$ circle [radius=1.5cm]
(-2.5,-2) rectangle (2.5,2) node[below left]$M$;
endscope
%
beginscope[xshift=5.5cm,yshift=-4.5cm,local bounding box=BR]
pgfresetboundingbox
draw[thick,save path=pathC] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathD] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$ (0,-1.5) node[below]$A- B$;
pgfkeysnot inside=pathD
fill[gray,use path=pathC];
endscope
%
foreach X in TL,TR,BL,BR draw[frame around=X];
endtikzpicture
enddocument
documentclassarticle
usepackagetikz
usetikzlibrarybackgrounds
% based on https://tex.stackexchange.com/a/12033/121799
tikzsetreverseclip/.style=insert path=(current bounding box.south west)rectangle
(current bounding box.north east) ,
use path/.code=pgfsetpath#1,%learned from Kpym
frame around/.style=insert path=
([xshift=-pgfkeysvalueof/tikz/frame
distance,yshift=-pgfkeysvalueof/tikz/frame distance]#1.south west) rectangle
([xshift=pgfkeysvalueof/tikz/frame
distance,yshift=pgfkeysvalueof/tikz/frame distance]#1.north east),
frame distance/.initial=5pt
begindocument
pgfkeysnot inside/.code=clip[use path=#1,reverseclip];,
inside/.code=clip[use path=#1];,
shade/.code=fill[#1] (current bounding box.south west)rectangle
(current bounding box.north east);
begintikzpicture
beginscope[local bounding box=TL]
draw[thick,fill=gray] (-1,0) node$A$ circle [radius=1.5cm]
(1,0) node$B$ circle[radius=1.5cm] (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acup B$;
endscope
%
beginscope[xshift=5.5cm,local bounding box=TR]
draw[thick,save path=pathA] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathB] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$
(0,-1.5) node[below]$Acap B$;
beginscope[on background layer]
pgfkeysinside/.list=pathA,pathB,shade=gray
endscope
endscope
%
beginscope[yshift=-4.5cm,local bounding box=BL]
draw[thick,fill=gray,even odd rule] (-0.5,0) node$A$ circle [radius=1.5cm]
(-2.5,-2) rectangle (2.5,2) node[below left]$M$;
endscope
%
beginscope[xshift=5.5cm,yshift=-4.5cm,local bounding box=BR]
pgfresetboundingbox
draw[thick,save path=pathC] (-1,0) node$A$ circle [radius=1.5cm];
draw[thick,save path=pathD] (1,0) node$B$ circle[radius=1.5cm];
path (0,1.5) node[above]$M$ (0,-1.5) node[below]$A- B$;
pgfkeysnot inside=pathD
fill[gray,use path=pathC];
endscope
%
foreach X in TL,TR,BL,BR draw[frame around=X];
endtikzpicture
enddocument
answered 4 hours ago
marmotmarmot
125k6161307
125k6161307
add a comment |
add a comment |
Matheus Chebli is a new contributor. Be nice, and check out our Code of Conduct.
Matheus Chebli is a new contributor. Be nice, and check out our Code of Conduct.
Matheus Chebli is a new contributor. Be nice, and check out our Code of Conduct.
Matheus Chebli is a new contributor. Be nice, and check out our Code of Conduct.
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%2f489683%2fhow-to-adjust-venn-diagram-for-ac-and-a-b%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
Have a look at the
venndiagram
package; it obviates all this extra code.– JPi
3 hours ago