-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation update: drawing functions
- Loading branch information
1 parent
685356b
commit 79940ea
Showing
11 changed files
with
238 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Drawing automorphisms | ||
===================== | ||
|
||
It can be helpful to see automorphisms rather than just read a description of them. | ||
To that end we introduce functions for rendering automorphisms as tree pair diagrams. | ||
The output looks best for automorphisms with a small arity (2--5) and a reasonable number of leaves. | ||
|
||
Examples | ||
-------- | ||
|
||
First we take a well-behaved automorphism. | ||
The solid carets are those belonging to both the domain and range trees. | ||
All other carets are dotted. | ||
Some edges are highlighted in red---these correspond to the repellers and attractors discussed by [SD10]_. | ||
|
||
.. sourcecode:: python | ||
|
||
>>> from thompson import * | ||
>>> x0 = standard_generator(0) | ||
>>> plot(x0) | ||
>>> forest(x0) | ||
|
||
.. image:: _static/images/x0_plot.svg | ||
:alt: A plot of the standard generator x_0 of Thompson's group F. | ||
:target: `thompson.drawing.plot`_ | ||
|
||
.. image:: _static/images/x0_forest.png | ||
:alt: The tree pair diagram for the standard generator x_0 of Thompson's group F. | ||
:target: `thompson.drawing.forest`_ | ||
|
||
Discontinuities are fine too. Here's ``example_4_17`` for instance. | ||
|
||
.. sourcecode:: python | ||
|
||
>>> pond = load_example('example_4_17') | ||
>>> plot(pond, discontinuities=True) | ||
>>> forest(pond) | ||
|
||
.. image:: _static/images/pond_plot.svg | ||
:alt: A plot of a specific element of G_{2,1}. | ||
:target: `thompson.drawing.plot`_ | ||
|
||
.. image:: _static/images/pond_forest.png | ||
:alt: The tree pair diagram for a specific element of G_{2,1}.. | ||
:target: `thompson.drawing.forest`_ | ||
|
||
Let's aim for something more chaotic. | ||
This example is complicated enough that the drawings don't really give us much insight into the automorphism. | ||
|
||
.. sourcecode:: python | ||
|
||
>>> random = random_automorphism() #different every time! | ||
>>> plot(random) | ||
>>> forest(random, horiz=False) | ||
|
||
.. image:: _static/images/random_plot.svg | ||
:alt: A plot of a randomly generated element of G_{3,4}. | ||
:target: `thompson.drawing.plot`_ | ||
|
||
.. image:: _static/images/random_forest.png | ||
:alt: The tree pair diagram for a randomly generated element of G_{3,4}. | ||
:target: `thompson.drawing.forest`_ | ||
|
||
Drawing functions | ||
----------------- | ||
|
||
.. automodule:: thompson.drawing | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.