我想画这个(附图)图,但画到一半就卡住了。我想让所有字都清晰可见。
我的代码
\documentclass{article}
\usepackage{tikz}
\begin{document}
\definecolor{pgreen}{HTML}{95bda3}
\begin{tikzpicture}
\tikzset{venn circle/.style={text=white,draw,circle,minimum width=6cm,fill=#1,opacity=0.4}}
\node [venn circle = pgreen] (A) at (0,0) {Social};
\node [venn circle = pgreen] (B) at (60:4cm) {\textbf{Environmental}};
\node [venn circle = pgreen] (C) at (0:4cm) {Economic};
\node[left] at (barycentric cs:A=1/3.5,B=1/2 ) {Bearable};
\node[below] at (barycentric cs:A=1/2,C=1/2 ) {Equitable};
\node[right] at (barycentric cs:B=1/1.25,C=1/2 ) {Viable};
\node[below] at (barycentric cs:A=1/3,B=1/3,C=1/3 ){Sustainable};
\end{tikzpicture}
\end{document}
以下是图标
原始图表
答案1
另一种方法是使用calc
库来放置所有内容。您可能也想更改opacity
。fill opactity
当然,还要将鸭子更改为您的图标。
评论:文本看起来更白在pdf文档中,所以我把你改成了绿色。
\documentclass[tikz,border=1.618mm]{standalone}
\usepackage{tikzducks}
\usetikzlibrary{calc}
\tikzset{venn circle/.style={thick,fill=green!30!black,fill opacity=1/3}}
\begin{document}
\begin{tikzpicture}[text=white]
\foreach[count=\j]\i in {Environtmental,Social,Economic}
{
\coordinate (\j) at (120*\j-30:2.5);
\draw[venn circle] (\j) circle (3.5) node{\i};
\node at (\j) {\i};
}
\node at ($(1)!0.5!(2)+(150:0.5)$) {Bearable};
\node at ($(2)!0.5!(3)+(270:0.5)$) {Equitable};
\node at ($(3)!0.5!(1)+ (30:0.5)$) {Viable};
\node at (0,0) {Sustainable};
% change the ducks for the icons
\duck[shift={(-1,3.5)},water];
\duck[shift={(-4,-4)},graduate];
\duck[shift={(2,-4)},tshirt,jacket=black,tie];
\end{tikzpicture}
\end{document}