有什么方法可以改变借助生成的梯度值吗?\tkzKiviatGrad改为非数值,normal, flavorful and intense
例如1,2,3
我查看了文档但找不到任何有用的东西。
这是我当前的代码片段:
\documentclass[12pt]{article}
\usepackage{tkz-kiviat,numprint,fullpage}
\begin{document}
\begin{tikzpicture}
\tkzKiviatDiagram[radial style/.style={gray!50}, scale=1, gap=1, lattice=3]{pineapple,mango,durian}
\tkzKiviatLine[thick,
color = orange,
ball color = orange,
mark size = 4pt,
fill = orange!20](1,2,3)
\tkzKiviatGrad[](3)
\end{tikzpicture}
\end{document}
任何想法都将受到高度赞赏。
答案1
由于您已经有了tikzpicture
,您可以保留图表并只添加标签。
\documentclass[12pt]{article}
\usepackage{tkz-kiviat,numprint,fullpage}
\begin{document}
\begin{tikzpicture}
\tkzKiviatDiagram[radial style/.style={gray!50}, scale=1, gap=1,
lattice=3]{pineapple,mango,durian}
\tkzKiviatLine[thick,mark=ball,
color = orange,
ball color = orange,
mark size = 4pt,
fill = orange!20](1,2,3)
%\tkzKiviatGrad[](3)
\foreach \X [count=\Y]in {normal, flavorful, intense}
\node[anchor=north,rotate=-30] at (\Y,0) {\X};
\end{tikzpicture}
\end{document}
答案2
tkz-kiviat
基于 Ti钾Z,让我们使用功能更强大、可定制的 Ti钾Z!其实一点也不复杂……
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\filldraw[fill=orange!20,draw=orange,thick] (1,0) -- (120:2) -- (-120:3) -- cycle;
\draw[help lines] (0,0) -- (3.5,0) node[right,black] {pineapple};
\draw[help lines] (0,0) -- (120:3.5) node[above left,black] {mango};
\draw[help lines] (0,0) -- (-120:3.5) node[below left,black] {durian};
\draw[help lines] foreach \i in {1,2,3} {(\i,0) -- (120:\i) -- (-120:\i) -- cycle};
\foreach \i [count=\j] in {normal,flavorful,intense}
\path (\j,0) node[below,font=\tiny\sffamily] {\i};
\end{tikzpicture}
\end{document}