我想知道当我将这段代码(产生一个红色星形)更改为三角形时会出现什么问题:这个有效:
\pgfdeclareplotmark{mystar}{
\node[star,star point ratio=2.25,minimum size=6pt,
inner sep=0pt,draw=black,solid,fill=red] {};
}
这个不起作用:
\pgfdeclareplotmark{mystar}{
\node[triangle,triangle point ratio=2.25,minimum size=6pt,
inner sep=0pt,draw=black,solid,fill=yellow] {};
}
期望输出:
答案1
解决了:
\addplot [
mark=triangle*,
mark options={fill=yellow},
line width=0.7pt,
black,
mark size=1.5pt,
]