tikz 极坐标的原点调整

2020-02-13 17:11发布

\coordinate (xyz) at (Angle:1); 这个貌似设置的原点貌似在(0,0),如何调整为(-10,0);

\coordinate (xyz) at (Angle:1); 这个貌似设置的原点貌似在(0,0),如何调整为(-10,0);
1条回答
vic156
2020-02-13 19:31
```tex \documentclass[border=5mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[help lines](-3,-3) grid (3,3); \draw (0,0)circle(1); \draw (0,0)circle(2); \fill (0,0)circle(2pt); \draw[->] (-130:1)--(60:2); %使用scope环境,只在scope内作用 \begin{scope}[xshift=1cm,yshift=1cm] \fill[blue] (0,0)circle(2pt); \draw[blue] (0,0)circle(1); \draw[blue] (0,0)circle(2); \draw[blue,->] (-30:1)--(160:2); \end{scope} %设置tikzset,之后的坐标都会换 \tikzset{shift={(-1,-1)}} \fill[red] (0,0)circle(2pt); \draw[red] (0,0)circle(1); \draw[red] (0,0)circle(2); \draw[red,->] (10:1)--(-130:2); \end{tikzpicture} \end{document} ```

一周热门 更多>