This is what my venn diagram looks like currently. I want it to look something like this.
This is what I have so far
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage[margin=0.5in]{geometry}
\usepackage{tikz}
\setlength\parindent{0pt}
\begin{tikzpicture}[line width = 2pt] % For some thicker lines
% Local variables to position the circles and bounding box
\coordinate (X) at (-0.44\textwidth,-0.15\textheight);
\coordinate (Y) at (+0.44\textwidth,+0.15\textheight);
\coordinate (A) at (-0.7in,0);
\coordinate (B) at (+0.7in,0);
% To shade the correct part of the Venn diagram
\begin{scope}
\clip
(B) circle (1in);
\fill
[gray!50] (A) circle (1in);
\end{scope}
\begin{scope}
\clip
\end{scope}
\draw (X) rectangle (Y) node[below left] {\huge $U$};
\draw (A) circle (1in) node {\huge $A$}; % Draw a cirle of radius 1in at A
\draw (B) circle (1in) node {\huge $B$}; % Draw a cirle of radius 1in at B
\end{tikzpicture}
\centerline{Venn diagram of}
\centerline{$(A \cap B) \cup (A \cup B)^c $}
How do I fix it?
Best Answer
A short code with
pstricks
: