使用以下代码只会使最后一个“绘制”命令行中指定的矩形周围的线条看起来正常,无论尝试如何使它们变粗
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[draw=gray, dashed, thick, ->] (4.125,-4) -- (4.125,4);
\draw[dashed, very thick, ->] (0,0) -- (8,0);
\filldraw[thick , fill=gray, draw=black] (4,1) rectangle (4.25,3);
\filldraw[thick , fill=gray, draw=black] (4,-0.5) rectangle (4.25,0.5);
\filldraw[thick , fill=gray, draw=black] (4,-1) rectangle (4.25,-3);
\filldraw[thick , fill=red, draw=black] (0,0.75) circle (0.1cm);
\filldraw[thick , fill=blue, draw=black] (0,-0.75) circle (0.1cm);
\draw[thick , ->] (0.1,0.75) -- (4.25,0.75);
\draw[thick , ->] (0.1,-0.75) -- (4.25, -0.75);
\filldraw[thick, draw=black, fill=gray] (8,-3) rectangle (8.25,3);
\end{tikzpicture}
\end{document}
答案1
我放大了它,它起作用了,谢谢大家