tikz의 복잡한 벤 차트

tikz의 복잡한 벤 차트

그래서 tikz를 사용하여 LaTeX 문서에 다음 차트를 넣고 싶습니다. 이 Venn-Diagram은 5세트 단면의 가능한 모든 조합을 보여줍니다. 나는 또한 ABCDE를 넣지 않고 거기에 단어를 넣고 싶습니다(그건 문제가 되지 않을 것 같습니다).

여기에 이미지 설명을 입력하세요

현재 내 코드는 다음과 같습니다

\begin{tikzpicture}[scale = 1.3,
        myellipse/.style={
            draw, ellipse, 
            inner xsep=3.9cm, 
            inner ysep=2cm}]
            
        \coordinate (C1) at (0,1.15);
        \coordinate (C2) at (-0.8,0.5); 
        \coordinate (C3) at (-0.8,-0.2);
        \coordinate (C4) at (0,-0.8);   
        \coordinate (C5) at (1,0);
        
        \node[myellipse, rotate=-75] at (C1) {};
        \node[myellipse, rotate=-10] at (C2) {};
        \node[myellipse, rotate=70] at (C3) {};
        \node[myellipse, rotate=-40] at (C4) {};
        \node[myellipse, rotate=20] at (C5) {};
    \end{tikzpicture}

하지만 나는 그것이 제대로 보이도록 할 수 없습니다. 모든 단면이 존재하려면 매개변수가 상당히 정확해야 합니다. 현재는 다음과 같습니다.

여기에 이미지 설명을 입력하세요

색상은 필요하지 않습니다. 누군가 나를 도와줄 수 있나요?

답변1

제안된 차트를 매우 정확하게 얻는 방법은 실제로 주로 시행착오를 통해서였습니다.

이것이 내가 한 방법입니다:

\usepackage{tikz}    
\usetikzlibrary{positioning, fit, shapes.geometric}
    ...
        \begin{tikzpicture}[scale = 1.3,
                myellipse/.style={
                    draw, ellipse, 
                    inner xsep=3.9cm, 
                    inner ysep=2cm}]
                    
                \coordinate (R1) at (-5.3,-4.5);        
                \coordinate (R2) at (5.3,5.5);
                \draw (R1) rectangle (R2);
                
                %\draw[step=1, opacity=0.3] (R1) grid (R2);
                    
                \coordinate (C1) at (0,1.15);
                \coordinate (C2) at (-0.8,0.5); 
                \coordinate (C3) at (-0.8,-0.2);
                \coordinate (C4) at (0,-0.8);   
                \coordinate (C5) at (1,0);
                
                \node[myellipse, rotate=-75] at (C1) {};
                \node[myellipse, rotate=-10] at (C2) {};
                \node[myellipse, rotate=70] at (C3) {};
                \node[myellipse, rotate=-40] at (C4) {};
                \node[myellipse, rotate=20] at (C5) {};
            \end{tikzpicture}

관련 정보