如何给图形填充颜色?

如何给图形填充颜色?

我可以使用下面提到的代码绘制雷达图,但不知何故,填充颜色选项不起作用。您能否建议我如何纠正它?

\begin{center}
\psframebox*[fillcolor=white]{
\begin{pspicture}(-6,-5)(5,5)
\psset{unit=1.2}
\psKiviat[rotate=0.5,yLabels={Skill3, Skill2, Skill1, Skill10, Skill9, Skill8, Skill7, Skill6, Skill5, Skill4}, labelsep=10pt]{10}{3}
\psKiviatTicklines[Dx=0.5,linecolor=black!30]{10}{3}
\psKiviatAxes[linecolor=black!30]{10}{3}
\psKiviatLine[linewidth=3pt,linecolor=black,fillcolor=lightgray]{\pskillc, \pskillb, \pskilla, \pskillj, \pskilli, \pskillh, \pskillg, \pskillf, \pskille, \pskilld}
\multido{\rA=0.5+0.5,\iA=20+20}{5}{\uput[3](0,\rA){\iA}}
\end{pspicture}
}
\end{center}

答案1

您缺少填充样式:

\psKiviatLine[linewidth=3pt,linecolor=black,
   fillstyle=solid,%%%%%%%%%%%%
   fillcolor=lightgray]%
  {\pskillc, \pskillb, \pskilla, \pskillj, \pskilli, \pskillh, \pskillg, \pskillf, \pskille, \pskilld}

并且使用opacity=0.5你会得到更好的结果:

在此处输入图片描述

相关内容