![每个象限都有文本的坐标系统](https://linux22.com/image/346961/%E6%AF%8F%E4%B8%AA%E8%B1%A1%E9%99%90%E9%83%BD%E6%9C%89%E6%96%87%E6%9C%AC%E7%9A%84%E5%9D%90%E6%A0%87%E7%B3%BB%E7%BB%9F.png)
我正在尝试重现此图表
到目前为止我已经尝试过
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[%
node distance=1.5cm,
filled/.style={circle,fill=red,text=white,minimum size=2cm}
]
\node [filled,label=below:{Primary Optical Area}] (1) {1};
\node [right=2cm of 1,filled,label=below:{Strong Fallow Area}] (2) {2};
\node [below=2cm of 1,filled,label=below:{Weak Fallow Area}] (3) {3};
\node [right=2cm of 3,filled,label=below:{Terminal Area}] (4) {4};
\end{tikzpicture}
\end{document}
结果是
这不是我想要的。
我如何制作坐标系,以便它与第一张图片等效?
答案1
这里有多个选项。如果将所有节点相对于 (0,0) 放置,定位线条会变得更容易,然后您只需按如下方式操作即可。
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[%
node distance=1.4cm and 2.2cm,
filled/.style={circle,fill=red,text=white,minimum size=2cm,font=\Huge},
label distance=5pt
]
\coordinate (O) at (0,0);
\node [above left=of O,filled,label=below:{Primary Optical Area}] (1) {1};
\node [above right=of O,filled,label=below:{Strong Fallow Area}] (2) {2};
\node [below left=of O,filled,label=below:{Weak Fallow Area}] (3) {3};
\node [below right=of O,filled,label=below:{Terminal Area}] (4) {4};
\draw (0,4) -- (0,-4);
\draw (4,0) -- (-4,0);
\draw [dashed,-latex,red] (1) -- (2);
\draw [dashed,-latex,red] (2) -- (3);
\draw [dashed,-latex,red] (3) -- (4);
\end{tikzpicture}
\end{document}