如何将“o”箭头填充为白色?

如何将“o”箭头填充为白色?

在此处输入图片描述

%%%%%%%%%%%%%%%%%%%%%%%%
\plot [Triangle-o,smooth,very thick,domain=11:-11]{-0.1*x+1.7};
%%%%%%%%%%%%%%%%%%%%%%%%

答案1

假设你的代码是 Tiarrows.metaZ 或 pgfplots,可以使用可以从库中获取空心圆箭头Circle[open]

\documentclass[border=3.14mm,tikz]{standalone}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[scale=0.4]
\draw[very thin] (-11,-11) grid (11,11);
\draw[thick] (-11,-11) rectangle (11,11);
\draw[{Triangle[]-Triangle}] (-11,0) -- (11,0);
\draw[{Triangle[]-Triangle}] (0,-11) -- (0,11);
\foreach \X in {1,...,10}
{\draw [thin] (0.1,\X) -- (-0.1,\X) node[left,font=\tiny,fill=white,inner sep=0pt]{\X};
\draw [thin] (0.1,-\X) -- (-0.1,-\X) node[left,font=\tiny,fill=white,inner sep=0pt]{-\X};
\draw [thin] (\X,0.1) -- (\X,-0.1) node[below,font=\tiny,fill=white,inner sep=0pt]{\X};
\draw [thin] (-\X,0.1) -- (-\X,-0.1) node[below,font=\tiny,fill=white,inner sep=0pt]{-\X};}
\draw[{Triangle}-{Circle[open]},very thick] plot [domain=11:-11,variable=\x]
(\x,{-0.1*\x+1.7});
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容