From aea87ffd1e19553eca72148f32de3dd914c1be96 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Thu, 11 Oct 2018 17:56:55 +0000 Subject: As presented at Yale University on 2018-10-11 --- figs/polymer_example.fig/segments.tikz.tex | 132 +++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 figs/polymer_example.fig/segments.tikz.tex (limited to 'figs/polymer_example.fig/segments.tikz.tex') diff --git a/figs/polymer_example.fig/segments.tikz.tex b/figs/polymer_example.fig/segments.tikz.tex new file mode 100644 index 0000000..9669e3b --- /dev/null +++ b/figs/polymer_example.fig/segments.tikz.tex @@ -0,0 +1,132 @@ +\documentclass{standalone} + +\usepackage{tikz} +\usepackage{dimer} + +\begin{document} +\begin{tikzpicture} + + +%% mantles + +% blue +\fill[color=blue](2,6.5)--++(13,0)--++(0.5,0.5)--++(0,8)--++(-0.5,0.5)--++(-13,0)--++(-0.5,-0.5)--++(0,-8)--cycle; +\fill[color=white](4,7.5)--++(9,0)--++(0.5,0.5)--++(0,6)--++(-0.5,0.5)--++(-9,0)--++(-0.5,-0.5)--++(0,-6)--cycle; +% red +\fill[color=red](6,8.5)--++(4,0)--++(0.5,0.5)--++(0,5)--++(-0.5,0.5)--++(-4,0)--++(-0.5,-0.5)--++(0,-5)--cycle; +\fill[color=white](7,10.5)--++(2,0)--++(0.5,0.5)--++(0,1)--++(-0.5,0.5)--++(-2,0)--++(-0.5,-0.5)--++(0,-1)--cycle; +% teal +\fill[color=teal](9,19.5)--++(9,0)--++(0.5,-0.5)--++(0,-10)--++(0.5,-0.5)--++(15,0)--++(0.5,0.5)--++(0,22)--++(-0.5,0.5)--++(-25,0)--++(-0.5,-0.5)--++(0,-11)--cycle; +\fill[color=white](11,20.5)--++(7,0)--++(0.5,-0.5)--++(0.5,-0.5)--++(1,0)--++(0.5,-0.5)--++(0,-9)--++(0.5,-0.5)--++(11,0)--++(0.5,0.5)--++(0,20)--++(-0.5,0.5)--++(-21,0)--++(-0.5,-0.5)--++(0,-9)--cycle; +% magenta +\fill[color=magenta](13,21.5)--++(18,0)--++(0.5,0.5)--++(0,7)--++(-0.5,0.5)--++(-18,0)--++(-0.5,-0.5)--++(0,-7)--cycle; +\fill[color=white](14,23.5)--++(16,0)--++(0.5,0.5)--++(0,3)--++(-0.5,0.5)--++(-16,0)--++(-0.5,-0.5)--++(0,-3)--cycle; +% cyan +\fill[color=cyan](23,11.5)--++(7,0)--++(0.5,0.5)--++(0,5)--++(-0.5,0.5)--++(-7,0)--++(-0.5,-0.5)--++(0,-5)--cycle; +\fill[color=white](24,13.5)--++(5,0)--++(0.5,0.5)--++(0,1)--++(-0.5,0.5)--++(-5,0)--++(-0.5,-0.5)--++(0,-1)--cycle; +% orange +\fill[color=orange](15,23.5)--++(5,0)--++(0.5,0.5)--++(0,3)--++(-0.5,0.5)--++(-5,0)--++(-0.5,-0.5)--++(0,-3)--cycle; +\fill[color=white](17,24.5)--++(1,0)--++(0.5,0.5)--++(0,1)--++(-0.5,0.5)--++(-1,0)--++(-0.5,-0.5)--++(0,-1)--cycle; +% green +\fill[color=green](23,24.5)--++(3,0)--++(0.5,0.5)--++(0,1)--++(-0.5,0.5)--++(-3,0)--++(-0.5,-0.5)--++(0,-1)--cycle; + + +%% segments + +\foreach \i in {0,...,1}{ + \draw[color=gray, line width=15pt](\i,-0.5)--++(0,37); +} +\foreach \i in {2,...,8}{ + \draw[color=gray, line width=15pt](\i,-0.5)--++(0,7); + \draw[color=gray, line width=15pt](\i,15.5)--++(0,21); +} +\foreach \i in {9,...,15}{ + \draw[color=gray, line width=15pt](\i,-0.5)--++(0,7); + \draw[color=gray, line width=15pt](\i,15.5)--++(0,4); + \draw[color=gray, line width=15pt](\i,31.5)--++(0,5); +} +\foreach \i in {16,...,18}{ + \draw[color=gray, line width=15pt](\i,-0.5)--++(0,20); + \draw[color=gray, line width=15pt](\i,31.5)--++(0,5); +} +\foreach \i in {19,...,34}{ + \draw[color=gray, line width=15pt](\i,-0.5)--++(0,9); + \draw[color=gray, line width=15pt](\i,31.5)--++(0,5); +} +\foreach \i in {35,...,36}{ + \draw[color=gray, line width=15pt](\i,-0.5)--++(0,37); +} + +\draw[color=blue, line width=15pt](3.5,8)--++(10,0); +\foreach \i in {9,...,14}{ + \draw[color=blue, line width=15pt](3.5,\i)--++(2,0); + \draw[color=blue, line width=15pt](10.5,\i)--++(3,0); +} + +\foreach \i in {7,...,9}{ + \draw[color=red, line width=15pt](\i,10.5)--++(0,2); +} + +\foreach \i in {10,...,11}{ + \draw[color=teal, line width=15pt](20.5,\i)--++(12,0); +} +\foreach \i in {12,...,17}{ + \draw[color=teal, line width=15pt](20.5,\i)--++(2,0); + \draw[color=teal, line width=15pt](30.5,\i)--++(2,0); +} +\foreach \i in {18,...,19}{ + \draw[color=teal, line width=15pt](20.5,\i)--++(12,0); +} +\draw[color=teal, line width=15pt](18.5,20)--++(14,0); +\draw[color=teal, line width=15pt](10.5,21)--++(22,0); +\foreach \i in {22,...,29}{ + \draw[color=teal, line width=15pt](10.5,\i)--++(2,0); + \draw[color=teal, line width=15pt](31.5,\i)--++(1,0); +} +\draw[color=teal, line width=15pt](10.5,30)--++(22,0); + +\foreach \i in {24,...,29}{ + \draw[color=cyan, line width=15pt](\i,13.5)--++(0,2); +} + +\draw[color=magenta, line width=15pt](14,23.5)--++(0,4); +\foreach \i in {21,...,22}{ + \draw[color=magenta, line width=15pt](\i,23.5)--++(0,4); +} +\foreach \i in {23,...,26}{ + \draw[color=magenta, line width=15pt](\i,23.5)--++(0,1); + \draw[color=magenta, line width=15pt](\i,26.5)--++(0,1); +} +\foreach \i in {27,...,30}{ + \draw[color=magenta, line width=15pt](\i,23.5)--++(0,4); +} + +\foreach \i in {25,...,26}{ + \draw[color=orange, line width=15pt](16.5,\i)--++(2,0); +} + + + +%% grid +\grid{36}{36}{[color=lightgray](0,0)} + +%% loops +% blue +\draw[color=black, line width=5pt](2,6.5)--++(13,0)--++(0.5,0.5)--++(0,8)--++(-0.5,0.5)--++(-13,0)--++(-0.5,-0.5)--++(0,-8)--cycle; +% red +\draw[color=black, line width=5pt](6,8.5)--++(4,0)--++(0.5,0.5)--++(0,5)--++(-0.5,0.5)--++(-4,0)--++(-0.5,-0.5)--++(0,-5)--cycle; +% teal +\draw[color=black, line width=5pt](9,19.5)--++(9,0)--++(0.5,-0.5)--++(0,-10)--++(0.5,-0.5)--++(15,0)--++(0.5,0.5)--++(0,22)--++(-0.5,0.5)--++(-25,0)--++(-0.5,-0.5)--++(0,-11)--cycle; +% magenta +\draw[color=black, line width=5pt](13,21.5)--++(18,0)--++(0.5,0.5)--++(0,7)--++(-0.5,0.5)--++(-18,0)--++(-0.5,-0.5)--++(0,-7)--cycle; +% cyan +\draw[color=black, line width=5pt](23,11.5)--++(7,0)--++(0.5,0.5)--++(0,5)--++(-0.5,0.5)--++(-7,0)--++(-0.5,-0.5)--++(0,-5)--cycle; +% orange +\draw[color=black, line width=5pt](15,23.5)--++(5,0)--++(0.5,0.5)--++(0,3)--++(-0.5,0.5)--++(-5,0)--++(-0.5,-0.5)--++(0,-3)--cycle; +%green +\draw[color=black, line width=5pt](23,24.5)--++(3,0)--++(0.5,0.5)--++(0,1)--++(-0.5,0.5)--++(-3,0)--++(-0.5,-0.5)--++(0,-1)--cycle; + + +\end{tikzpicture} +\end{document} + -- cgit v1.2.3-54-g00ecf