<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://katlas.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=VidarElbor</id>
	<title>Knot Atlas - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://katlas.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=VidarElbor"/>
	<link rel="alternate" type="text/html" href="https://katlas.org/wiki/Special:Contributions/VidarElbor"/>
	<updated>2026-07-11T03:58:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://katlas.org/index.php?title=Drawing_Braids&amp;diff=1693738</id>
		<title>Drawing Braids</title>
		<link rel="alternate" type="text/html" href="https://katlas.org/index.php?title=Drawing_Braids&amp;diff=1693738"/>
		<updated>2009-05-22T11:34:36Z</updated>

		<summary type="html">&lt;p&gt;VidarElbor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;http://www.textaloloacelrel.com &lt;br /&gt;
{{Manual TOC Sidebar}}&lt;br /&gt;
&lt;br /&gt;
{{Startup Note}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$?BraidPlot$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{HelpLine|&lt;br /&gt;
n  = 1 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;BraidPlot&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;BraidPlot[br, opts] produces a plot of the braid br. Possible options&lt;br /&gt;
are Mode, HTMLOpts, WikiOpts and Images.&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus for example,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$br = BR[5, {{1,3}, {-2,-4}, {1, 3}}];$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{In|&lt;br /&gt;
n  = 2 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;br = BR[5, {{1,3}, {-2,-4}, {1, 3}}];&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$Show[BraidPlot[br]]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{Graphics|&lt;br /&gt;
n  = 4 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;Show[BraidPlot[br]]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
img= Drawing_Braids_Out_3.gif |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;-Graphics-&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;BraidPlot&amp;lt;/code&amp;gt; takes several options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$Options[BraidPlot]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{InOut|&lt;br /&gt;
n  = 5 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;Options[BraidPlot]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;{Mode -&amp;gt; Graphics, Images -&amp;gt; {0.gif, 1.gif, 2.gif, 3.gif, 4.gif}, &lt;br /&gt;
 &lt;br /&gt;
  HTMLOpts -&amp;gt; , WikiOpts -&amp;gt; }&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Mode&amp;lt;/code&amp;gt; option to &amp;lt;code&amp;gt;BraidPlot&amp;lt;/code&amp;gt; defaults to &amp;quot;&amp;lt;code&amp;gt;Graphics&amp;lt;/code&amp;gt;&amp;quot;, which produces output as above. An alternative is setting &amp;lt;code&amp;gt;Mode -&amp;gt; &amp;quot;HTML&amp;quot;&amp;lt;/code&amp;gt;, which produces an HTML &amp;lt;tt&amp;gt;&amp;amp;lt;table&amp;amp;gt;&amp;lt;/tt&amp;gt; that can be readily inserted into HTML documents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$BraidPlot[br, Mode -&amp;gt; &amp;quot;HTML&amp;quot;]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{InOut|&lt;br /&gt;
n  = 6 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;BraidPlot[br, Mode -&amp;gt; &amp;quot;HTML&amp;quot;]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;&amp;lt;table cellspacing=0 cellpadding=0 border=0&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=1.gif&amp;gt;&amp;lt;img src=0.gif&amp;gt;&amp;lt;img src=1.gif&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=2.gif&amp;gt;&amp;lt;img src=3.gif&amp;gt;&amp;lt;img src=2.gif&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=1.gif&amp;gt;&amp;lt;img src=4.gif&amp;gt;&amp;lt;img src=1.gif&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=2.gif&amp;gt;&amp;lt;img src=3.gif&amp;gt;&amp;lt;img src=2.gif&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=0.gif&amp;gt;&amp;lt;img src=4.gif&amp;gt;&amp;lt;img src=0.gif&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The table produced contains an array of image inclusions that together draws the braid using 5 fundamental building blocks: a horizontal &amp;quot;unbraided&amp;quot; line (&amp;lt;tt&amp;gt;0.gif&amp;lt;/tt&amp;gt; above), the upper and lower halves of an overcrossing (&amp;lt;tt&amp;gt;1.gif&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;2.gif&amp;lt;/tt&amp;gt; above) and the upper and lower halves of an underfcrossing (&amp;lt;tt&amp;gt;3.gif&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;4.gif&amp;lt;/tt&amp;gt; above).&lt;br /&gt;
&lt;br /&gt;
Assuming &amp;lt;tt&amp;gt;0.gif&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;4.gif&amp;lt;/tt&amp;gt; are [[Image:BraidPart0.gif]], [[Image:BraidPart1.gif]], [[Image:BraidPart2.gif]], [[Image:BraidPart3.gif]] and [[Image:BraidPart4.gif]], the above table is rendered as follows:&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=0 cellpadding=0 border=0 align=center&lt;br /&gt;
|[[Image:BraidPart1.gif]][[Image:BraidPart0.gif]][[Image:BraidPart1.gif]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:BraidPart2.gif]][[Image:BraidPart3.gif]][[Image:BraidPart2.gif]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:BraidPart1.gif]][[Image:BraidPart4.gif]][[Image:BraidPart1.gif]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:BraidPart2.gif]][[Image:BraidPart3.gif]][[Image:BraidPart2.gif]]&lt;br /&gt;
|-&lt;br /&gt;
|[[Image:BraidPart0.gif]][[Image:BraidPart4.gif]][[Image:BraidPart0.gif]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The meaning of the &amp;lt;code&amp;gt;Images&amp;lt;/code&amp;gt; option to &amp;lt;code&amp;gt;BraidPlot&amp;lt;/code&amp;gt; should be clear from reading its default definition:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$Images /. Options[BraidPlot]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{InOut|&lt;br /&gt;
n  = 7 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;Images /. Options[BraidPlot]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;{0.gif, 1.gif, 2.gif, 3.gif, 4.gif}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;HTMLOpts&amp;lt;/code&amp;gt; option to &amp;lt;code&amp;gt;BraidPlot&amp;lt;/code&amp;gt; allows to insert options within the HTML &amp;lt;tt&amp;gt;&amp;amp;lt;img&amp;amp;gt;&amp;lt;/tt&amp;gt; tags. Thus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$BraidPlot[BR[2, {1, 1}], Mode -&amp;gt; &amp;quot;HTML&amp;quot;, HTMLOpts -&amp;gt; &amp;quot;border=1&amp;quot;]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{InOut|&lt;br /&gt;
n  = 8 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;BraidPlot[BR[2, {1, 1}], Mode -&amp;gt; &amp;quot;HTML&amp;quot;, HTMLOpts -&amp;gt; &amp;quot;border=1&amp;quot;]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;&amp;lt;table cellspacing=0 cellpadding=0 border=0&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img border=1 src=1.gif&amp;gt;&amp;lt;img border=1 src=1.gif&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img border=1 src=2.gif&amp;gt;&amp;lt;img border=1 src=2.gif&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above table is rendered as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[Image:BraidPlotHTMLExample2.gif]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$?CollapseBraid$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{HelpLine|&lt;br /&gt;
n  = 9 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;CollapseBraid&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;CollapseBraid[br] groups together commuting generators in the braid&lt;br /&gt;
br. Useful in conjunction with BraidPlot to produce compact braid plots.&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus compare the plots of &amp;lt;code&amp;gt;br1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;br2&amp;lt;/code&amp;gt; below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$br1 = BR[TorusKnot[5, 4]]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{InOut|&lt;br /&gt;
n  = 10 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;br1 = BR[TorusKnot[5, 4]]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;BR[4, {1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3}]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$Show[BraidPlot[br1]]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{Graphics|&lt;br /&gt;
n  = 12 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;Show[BraidPlot[br1]]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
img= Drawing_Braids_Out_11.gif |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;-Graphics-&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$br2 = CollapseBraid[BR[TorusKnot[5, 4]]]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{InOut|&lt;br /&gt;
n  = 13 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;br2 = CollapseBraid[BR[TorusKnot[5, 4]]]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;BR[4, {{1}, {2}, {3, 1}, {2}, {3, 1}, {2}, {3, 1}, {2}, {3, 1}, {2}, &lt;br /&gt;
 &lt;br /&gt;
   {3}}]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$Show[BraidPlot[br2]]$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{Graphics|&lt;br /&gt;
n  = 15 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;Show[BraidPlot[br2]]&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
img= Drawing_Braids_Out_14.gif |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;-Graphics-&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;/div&gt;</summary>
		<author><name>VidarElbor</name></author>
	</entry>
</feed>