全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 LATEX论坛
1380 2
2021-01-07
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,chains}


\begin{figure}
    \tikzstyle{startstop} = [rectangle, text centered, draw = black, fill = white]
    \tikzstyle{arrow} = [->,>=stealth]
    \begin{tikzpicture}
        \node(assum)[startstop]  {Assumption};
        \node(fprop)[startstop,below of=assum,yshift=-0.2cm, left of = assum, xshift=-1cm]{Formal Proportion};
        \node(eprop)[startstop,right of = fprop, xshift = 4cm]{Empirical Proposition};
        \node(test)[startstop, blow of = eprop, yshift = -0.2cm]{Test by Data};
        \node(theory)[startstop, blow of = test, yshift = -0.2cm,left of = test, xshift = -1cm]{Wrong Theory};
        \node(assump)[startstop, blow of = test, right of = theory, yshift = -0.2cm, xshift = 4cm ]{Assumptions not met};
        \node(conf)[startstop, right of = test, xshift = 2 cm]{Confident};
        \draw[arrow](assum) -- (fprop);
        \draw[arrow](assum) -- (eprop);
        \draw[arrow](eprop) -- (test);
        \draw[arrow](test) -- \node[above]{Yes}(conf);
        \draw[arrow](test) -- \node[left]{No}(theory);
        \draw[arrow](test) -- \node[right]{No}(assump);
    \end{tikzpicture}
\end{figure}
\end{document}



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2021-1-10 10:39:34
啥错误?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-1-12 15:06:16
oliyiyi 发表于 2021-1-10 10:39
啥错误?
我找到错误啦  最后三行 node前面不应该加\。

我一开始编译的时候,没有显示错误,就是一直在编译……
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群