在 tikz 中旋转箭头

在 tikz 中旋转箭头

如何旋转箭头到右上角的块?我需要箭头跟随块之间。

\begin{tikzpicture}[node distance = 2cm, auto]
    \node [block] (step1) {Elimination of redundant information using PCA};
    \node [block, below of = step1] (step2) {Transition to integral characteristics for time intervals by means of discrete wavelet transform};
    \node [block, below of = step2] (step3) {Computing the mutual distance matrix between subjects};
    \node [block, below of = step3] (step4) {Applying multidimensional scaling to analyze the mutual allocation of subjects within a space with acceptable dimensions};
    \node [block, below of = step4] (step5) {Cluster analysis of subjects in the obtained scaling space};
    \node [block, right of = step1, xshift=5cm] (step6) {Computing the mutual distance matrix between subjects};
    \node [block, below of = step6] (step7) {Probabilistic assessments of subject class recognition using sample distribution functions of distances to cluster centers.};
    \node [block, below of = step7] (step8) {Selecting the subject class or the closest subjects from different classes, with difference parameters being calculated};
    \node [block, below of = step8] (step9) {Clarifying the relationship to the classes under consideration.};

    % Draw edges
    \path [line] (step1) -- (step2);
    \path [line] (step2) -- (step3);
    \path [line] (step3) -- (step4);
    \path [line] (step4) -- (step5);

    \draw [line, thick] (step5.south) |-+(0,-1em)-||- ([xshift=-.6cm]step6.west);

\end{tikzpicture}

例子

答案1

您的代码片段留下了许多未定义的内容(block, line),并使用了一种过时的节点定位方式。我不得不编造一些风格,可以想象您正在寻找这样的东西。

\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{chains}
% from https://tex.stackexchange.com/q/304563
\makeatletter
\tikzset{suspend join/.code={\def\tikz@after@path{}}}
\makeatother
\begin{document}
\begin{tikzpicture}[node distance =1cm and 1.2cm, auto,block/.style={draw, rectangle, 
    minimum height=7em,text width=12em,rounded
    corners,fill=blue!20,font=\sffamily,on chain=step},
    line/.style={thick,-stealth,draw},
    start chain=step going below,
    nodes={block,join=by {line}}]
    \node   {Elimination of redundant information using PCA};
    \node   {Transition to integral characteristics for time intervals by means of discrete wavelet transform};
    \node   {Computing the mutual distance matrix between subjects};
    \node   {Applying multidimensional scaling to analyze the mutual allocation of subjects within a space with acceptable dimensions};
    \node   {Cluster analysis of subjects in the obtained scaling space};
    \node[right=of step-1,suspend join]   {Computing the mutual distance matrix between subjects};
    \node   {Probabilistic assessments of subject class recognition using sample distribution functions of distances to cluster centers.};
    \node   {Selecting the subject class or the closest subjects from different classes, with difference parameters being calculated};
    \node   {Clarifying the relationship to the classes under consideration.};
    \path[line, thick] (step-5.south) --+(0,-1em)-| ([xshift=-.6cm]step-6.west)
        -- (step-6.west);
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容