我正在画一幅简单的画,高中生必须完成这幅画。这是用 R² 画的,所以我还做了一个光栅。如果我用黑线画光栅,它会太暗,所以我加载了包color
并将颜色改为青色。但彩色的线条偏移了大约1mm
。
奇怪的是,如果我删除水平线的颜色,垂直线会变成蓝色,但位置正确。如果我将水平线设为蓝色,垂直线会偏移。我在代码中所做的唯一更改是注释掉颜色。
查看代码和图像了解更多信息:
\begin{picture}(82,100)
\linethickness{0.02mm}
\textcolor{cyan}
{\multiput(0,0)(5,0){17}%
{\line(0,1){100}}}
\textcolor{cyan}
{\multiput(0,0)(0,5){21}%
{\line(1,0){80}}}
\linethickness{0.3mm}
\multiput(10,9)(10,0){7}%
{\line(0,1){2}}
\multiput(19,10)(0,10){9}%
{\line(1,0){2}}
\linethickness{0.3mm}
\put(20,0){\vector(0,1){98}}
\put(0,10){\vector(1,0){78}}
\put(0,10){\line(2,1){80}}
\put(40,80){\circle*{0.6}}
\put(28,21){$r$}
\put(41,81){$P$}
\put(6,5){$-1$}
\put(16,5){$0$}
\put(29,5){$1$}
\put(39,5){$2$}
\put(49,5){$3$}
\put(59,5){$4$}
\put(69,5){$5$}
\put(74,5){$x$}
\put(16,18){$1$}
\put(16,28){$2$}
\put(16,38){$3$}
\put(16,48){$4$}
\put(16,58){$5$}
\put(16,68){$6$}
\put(16,78){$7$}
\put(16,88){$8$}
\put(16,94){$y$}
\end{picture}
\begin{picture}(82,100)
\linethickness{0.02mm}
\textcolor{cyan}
{\multiput(0,0)(5,0){17}%
{\line(0,1){100}}}
%\textcolor{cyan}
{\multiput(0,0)(0,5){21}%
{\line(1,0){80}}}
\linethickness{0.3mm}
\multiput(10,9)(10,0){7}%
{\line(0,1){2}}
\multiput(19,10)(0,10){9}%
{\line(1,0){2}}
\linethickness{0.3mm}
\put(20,0){\vector(0,1){98}}
\put(0,10){\vector(1,0){78}}
\put(0,10){\line(2,1){80}}
\put(40,80){\circle*{0.6}}
\put(28,21){$r$}
\put(41,81){$P$}
\put(6,5){$-1$}
\put(16,5){$0$}
\put(29,5){$1$}
\put(39,5){$2$}
\put(49,5){$3$}
\put(59,5){$4$}
\put(69,5){$5$}
\put(74,5){$x$}
\put(16,18){$1$}
\put(16,28){$2$}
\put(16,38){$3$}
\put(16,48){$4$}
\put(16,58){$5$}
\put(16,68){$6$}
\put(16,78){$7$}
\put(16,88){$8$}
\put(16,94){$y$}
\end{picture}
答案1
你有两个虚假的空间
\begin{picture}(82,100)
\linethickness{0.02mm}
\textcolor{cyan}
{\multiput(0,0)(5,0){17}%
{\line(0,1){100}}}% <<<<<<< Otherwise a space will appear
\textcolor{cyan}
{\multiput(0,0)(0,5){21}%
{\line(1,0){80}}}% <<<<<<< Otherwise a space will appear
\linethickness{0.3mm}
...