![如何给图形填充颜色?](https://linux22.com/image/276505/%E5%A6%82%E4%BD%95%E7%BB%99%E5%9B%BE%E5%BD%A2%E5%A1%AB%E5%85%85%E9%A2%9C%E8%89%B2%EF%BC%9F.png)
我可以使用下面提到的代码绘制雷达图,但不知何故,填充颜色选项不起作用。您能否建议我如何纠正它?
\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
你会得到更好的结果: