线上标记间隔

线上标记间隔

我需要制作一张这样的图片,在线上创建一个函数间隔:

在此处输入图片描述

我不知道该怎么做。有人知道吗?

答案1

根据上述评论和链接,

不等式解中的实线

我做的

\usetikzlibrary{decorations.markings}
\usepackage{tikz}

\tikzset{
    thickest/.style={line width=3pt},
    empty/.style={decoration={markings,
    mark=at position #1 with {\fill[white,draw=black,thin] circle (3pt);}},postaction={decorate}},
    full/.style={decoration={markings,

\begin{document}

\begin{tikzpicture}[x=5mm,y=1.2em]
       \draw (  5,0) -- (11,0);
       \draw ( -5,2) -- (13,2);
       \draw ( -5,4) -- (13,4);

       \draw[dashed] ( 10,-1) -- ( 10,6);
       \draw[dashed] (  5,-1) -- (  5,6);

       \node[anchor=north east] at ( 5,0) {$-1+\sqrt{3}$};
       \node[anchor=north west] at (10,0) {$ 1+\sqrt{3}$};

       \node[anchor=north east] at ( 1,2) {$ 1-\sqrt{3}$};
       \node[anchor=north west] at (10,2) {$ 1+\sqrt{3}$};
       \node[anchor=north] at (4,2) {$ < 0 $};


       \node[anchor=south] at ( 5,4) {$-1+\sqrt{3}$};
       \node[anchor=south] at (-1,4) {$ 1-\sqrt{3}$};
       \node[anchor=north] at (-3,4) {$ > 0 $};
       \node[anchor=north] at ( 8,4) {$ > 0 $};

       \node[anchor=west] at ( 13,4) { Equação 1};
       \node[anchor=west] at ( 13,2) { Equação 2};

       %\node[anchor=north west] at ( 6,4) {6};

% ARROWS

\draw[thickest,full=0,full=1] ( 5,0) -- (10,0);
\draw[thickest,full=0,full=1] (10,2) -- ( 1,2);
\draw[thickest,full=0,-stealth] (-1,4) -- (-5,4);
\draw[thickest,full=0,-stealth] ( 5,4) -- (13,4);

\end{tikzpicture}

\end{document}

这就是结果,

在此处输入图片描述

谢谢你的帮助。

相关内容