提问于:
浏览数:
3083
\coordinate (xyz) at (Angle:1);
这个貌似设置的原点貌似在(0,0),如何调整为(-10,0);
1 回答
4
```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}
```
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。