From 0f1af06932cb1d620a0233ca0a1c2d7934656414 Mon Sep 17 00:00:00 2001 From: Jan Ernsting Date: Tue, 25 Jan 2022 16:56:34 +0100 Subject: [PATCH] Added unet branch connection python function --- pycore/tikzeng.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pycore/tikzeng.py b/pycore/tikzeng.py index 8e988c4..5ae2053 100644 --- a/pycore/tikzeng.py +++ b/pycore/tikzeng.py @@ -184,6 +184,12 @@ def to_connection( of, to): \draw [connection] ("""+of+"""-east) -- node {\midarrow} ("""+to+"""-west); """ +def to_unet_branch_connection(of, to, name): + return r""" +\path (""" + of + """-east) -- (""" + to + """-west|-""" + of + """-west) coordinate[pos=0.5] (""" + name + """); +\draw[connection](""" + of + """-east)--node{\midarrow}(""" + name + """)--node{\midarrow}(""" + to + """-west-|""" + name + """)--node{\midarrow}("""+ to + """-west); +""" + def to_skip( of, to, pos=1.25): return r""" \path ("""+ of +"""-southeast) -- ("""+ of +"""-northeast) coordinate[pos="""+ str(pos) +"""] ("""+ of +"""-top) ;