简单线上的 tikz 节点问题,

简单线上的 tikz 节点问题,

我只是希望“外部选项”标签和“零售商”标签不要与该细分市场的极值重叠!

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[xscale=8]
\draw[-][very thick] (0,0) -- (1,0);
\draw [thick] (0,-.1) node[below]{0} node[above]{Outside Option} -- (0,0.1);
\draw [thick] (1,-.1) node[below]{1} node[above]{Retailer} -- (1,0.1);
\end{tikzpicture}

\end{document}

看了过去的问题,但我不知道我遗漏了什么......

答案1

我认为只需将节点移动到结束坐标之后即可。

例如,当前您正在执行的操作(1,-.1) node[above] {Retailer} ...意味着节点相对于 (1, -0.1) 放置。如果您执行的操作相反,则(1,-.1) -- (1, 0.1) node[above] {Retailer}节点相对于 (1, 0.1) 放置。

在此处输入图片描述

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[xscale=8]
\draw[-][very thick] (0,0) -- (1,0);
\draw [thick] (0,-.1) node[below]{0} -- (0,0.1) node[above]{Outside Option};
\draw [thick] (1,-.1) node[below]{1} -- (1,0.1) node[above]{Retailer};
\end{tikzpicture}

\end{document}

相关内容