better example
This commit is contained in:
parent
57d13b0470
commit
3e349d4775
3 changed files with 18 additions and 22 deletions
40
README.md
40
README.md
|
@ -8,36 +8,32 @@ Furthermore the script `gen` generate only PNG optimized for the web.
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
z0=(1.3u,0);
|
z0=origin;
|
||||||
z1=z0 shifted (u,0);
|
z1=(gu,0);
|
||||||
z2=z1 shifted (u,0);
|
z2=(2gu,0);
|
||||||
|
z3=(3gu,0);
|
||||||
|
|
||||||
nodesize:=4bp;
|
drawState(z0,"A");
|
||||||
nodespace:=6bp;
|
drawState(z1,"B");
|
||||||
|
drawState(z2,"C");
|
||||||
|
drawState(z3,"D");
|
||||||
|
|
||||||
drawstate(z0);
|
drawEdge(z1,z2,"g");
|
||||||
drawstate(z1);
|
|
||||||
drawstate(z2);
|
|
||||||
|
|
||||||
drawarrow edge(z0,z1);
|
drawoptions(withcolor blue);
|
||||||
drawarrow edge(z1,z2);
|
drawEdgeAngle(z0,z2,"g\circ f",35);
|
||||||
drawarrow edgeAngle(z0,z2,-35);
|
drawEdge(z2,z3,"h");
|
||||||
|
|
||||||
nodesize:=6bp;
|
drawoptions(withcolor green);
|
||||||
ahlength:=.3nodesize;
|
drawEdge(z0,z1,"f");
|
||||||
drawarrow edge(z0,z0);
|
drawEdgeAngle(z1,z3,"h\circ g",-35);
|
||||||
drawarrow edge(z1,z1);
|
|
||||||
drawarrow edge(z2,z2);
|
|
||||||
|
|
||||||
label(btex $ = 3 = $ etex,origin);
|
drawoptions(withcolor yellow);
|
||||||
drawstate((-1.5u,.2u));
|
drawEdgeAngle(z0,z3,"(h\circ g)\circ f = h\circ (g\circ f)",50);
|
||||||
drawstate((-1.5u-.2u,-.2u));
|
|
||||||
drawstate((-1.5u+.2u,-.2u));
|
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Generate the following image:
|
Generate the following image:
|
||||||
|
|
||||||
<img src="./abstraction.png" alt="The category for the number 3"><br/>
|
<img src="./associativecomposition.png" alt="Composition is associative"><br/>
|
||||||
The category corresponding to number 3.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
abstraction.png
BIN
abstraction.png
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
BIN
associativecomposition.png
Normal file
BIN
associativecomposition.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 122 KiB |
Loading…
Reference in a new issue