欧拉图缺失一部分

欧拉图缺失一部分

Claudio Fiandrino 很好地回答了我的问题复杂维恩图(实际上是欧拉图)。我确实修改了一些代码,使该图更像我之前的维恩图(1.2 - 参见复杂维恩图)。不过现在我已经“丢失”了两个较小的“卫星”中的一个(带有 SchoolColor 的卫星 - 请参阅 MWE)。我怎样才能让它重新出现? 欧拉图

\documentclass{book}
\RequirePackage[usenames,dvipsnames]{xcolor}
\definecolor{SchoolColor}{rgb}{0.6471, 0.1098, 0.1882} % Crimson
\definecolor{forestgreen}{rgb}{0.0, 0.27, 0.13}
\usepackage{tikz}

\begin{document}
\begin{figure}\centering
\pagestyle{empty}
\def\firstcircle{(0,0) circle (3.0cm)}
\def\secondcircle{(360:3.9cm) circle (3.0cm)}
\begin{tikzpicture}
\begin{scope}[fill opacity=0.60,text opacity=1,white,align=center,text width=2.5cm]
\draw[style=shade, top color=white, bottom color=cyan!80!black!20 ][black] \firstcircle 
node[shift={(-.55,1.1)},text=black]{\textsc{Rules-Based (Passive)}};
\draw[style=shade, top color=white, bottom color=brown!80!black!20][black] \secondcircle 
node[shift={(.55,1.1)},text=black]{\textsc{Bet Against Market Portfolio (Active)}};
\node[text=black] at (1.95,0){\textsc{Strategic Beta}};
        \clip \firstcircle;
  \fill[red][fill opacity=0.6]\secondcircle;
\begin{scope}[scale=0.8,transform shape,align=center,white,fill opacity=1]
% little circles inside
\draw[style=shade, top color=white, bottom color=forestgreen][black](0.25,-1.45)circle(1.50cm) 
 node[text width=2.25cm,text=white] {\textsc{Market-Cap\\ Weighted}};
 \draw[style=shade, top color=white, bottom color=SchoolColor][black](6,-1.45)circle(1.50cm) 
 node[text width=2.25cm,text=white] {\textsc{Actively\\ Managed}};
\end{scope}
\end{scope}
\end{tikzpicture}
\end{figure}
\end{document}

答案1

丢失的卫星应该是最后一个绘制的卫星,在最后一个范围之后;否则它将被剪掉。

更新:实际上应该最后绘制两颗卫星,以简化代码。

在此处输入图片描述

代码

\documentclass[border=10pt]{standalone}%{book}
\RequirePackage[usenames,dvipsnames]{xcolor}
\definecolor{SchoolColor}{rgb}{0.6471, 0.1098, 0.1882} % Crimson
\definecolor{forestgreen}{rgb}{0.0, 0.27, 0.13}
\usepackage{tikz}

\begin{document}
%\begin{figure}
\centering
\pagestyle{empty}
\def\firstcircle{(0,0) circle (3.0cm)}
\def\secondcircle{(360:3.9cm) circle (3.0cm)}
\begin{tikzpicture}
\begin{scope}[fill opacity=0.60,text opacity=1, white,align=center,text width=2.5cm]
\draw[style=shade, top color=white, bottom color=cyan!80!black!20 ][black] \firstcircle 
node[shift={(-.55,1.1)},text=black]{\textsc{Rules-Based (Passive)}};
\draw[style=shade, top color=white, bottom color=brown!80!black!20][black] \secondcircle 
node[shift={(.55,1.1)},text=black]{\textsc{Bet Against Market Portfolio (Active)}};
\node[text=black] at (1.95,0){\textsc{Strategic Beta}};
\clip \firstcircle;
\fill[red][fill opacity=0.6]\secondcircle;
\end{scope}  % ---------- after this scope

\begin{scope}[scale=0.8,transform shape,align=center,white,fill opacity=1]
% little circles inside
\draw[style=shade, top color=white, bottom color=forestgreen][black](0.25,-1.45)circle(1.50cm) 
 node[text width=2.25cm,text=white] {\textsc{Market-Cap\\ Weighted}};
\draw[style=shade, top color=white, bottom color=SchoolColor][black](6,-1.45)circle(1.50cm) 
 node[text width=2.25cm,text=white] {\textsc{Actively\\ Managed}};
 \end{scope}
\end{tikzpicture}
%\end{figure}
\end{document}

相关内容