我有这个:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.csv}
Label,x,y,angle
a,0,0,90
b,2,2.5,90
c,3,2.9,90
d,4,4,-90
\end{filecontents*}
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel= $Interes$, ylabel=$Power$,
axis x line=bottom,
axis y line=left,
visualization depends on = \thisrow{angle} \as \angle]
\addplot +[only marks,
nodes near coords=,
point meta = explicit symbolic,
every node near coord/.style = {
anchor = center, pin = {\angle:\pgfplotspointmeta}
}
] table
[col sep = comma, x = x, y = y, meta = Label
] {\jobname.csv};
\end{axis}
\end{tikzpicture}
\end{document}
结果如下:
我想要将 0,0 (坐标)的点 a 移动到 1,1
a,1,1,90
但是代码是这样做的:
??????
有什么想法吗?非常感谢