我有一张坐标图
\draw plot [smooth] coordinates{ (-3.1,-0.5) (-1.5,0.3) (0,0) (1.8,0.64) (3,0.5)};
有没有办法把 (0,0) 和 (1.8, 0.64) 之间的曲线画粗?
我只会绘制第二个图,但当我省略数据时,平滑度当然会有所不同。
答案1
您可以剪辑第二个情节:
\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw plot [smooth] coordinates{ (-3.1,-0.5) (-1.5,0.3) (0,0) (1.8,0.64) (3,0.5)};
\begin{scope}
\clip(0,0) rectangle (1.8,0.64);
\draw[thick] plot [smooth] coordinates{ (-3.1,-0.5) (-1.5,0.3) (0,0) (1.8,0.64) (3,0.5)};
\end{scope}
\end{tikzpicture}
\end{document}