在 Latex 中绘制 Eclipse

在 Latex 中绘制 Eclipse

我正在尝试在乳胶中绘制下面的图片,但我不擅长绘制图表。enter image description here

答案1

试试吧,但我也不是专家。尝试就是学习。最好能检测出交叉点,但我不知道怎么做……

enter image description here

\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
%Ref: http://tex.stackexchange.com/a/228605/124842
\begin{document}
\begin{tikzpicture}
    \def\firstellipse{(-5,0) ellipse (8 and 4.5)}
    \def\secondellipse{(-6,-1) ellipse (3 and 2.5)}
    \def\thirdellipse{(-4,-0.5) ellipse (3 and 2.5)}

    % colour ellipses
    \fill[white] \firstellipse ;
    \fill[white] \secondellipse;
    \fill[gray] \thirdellipse;

    \draw[gray] \thirdellipse;

    % colour intersection
    \begin{scope}
        \clip \secondellipse;
        \fill[white] \thirdellipse \firstellipse;
    \end{scope}

   \draw \firstellipse \secondellipse;
   \draw[gray,dashed]  \thirdellipse;

   \node[draw, fill=white] at (-11.5, 2.8)   (b) {$SS_{TOT}$};
   \node at (-6.5, -1.5)   (b) {$SSR(X_2,X_3)$};


   %Ref:http://tex.stackexchange.com/a/107101/124842
   \draw[black,solid,line width=1mm,fill=black,preaction={-triangle 90,thin,draw,shorten >=-1mm}] (1.5, 3.5) node[above]{$SSR(X_2,X_3)$} -- (-2,1) node[above, scale = 2.3] {};

\end{tikzpicture}
\end{document}

相关内容