Skip to content

Commit

Permalink
gh-35331: Add monotile to polgyon examples
Browse files Browse the repository at this point in the history
    
This adds an aperiodic monotile to the many examples in the
documentation of the `polygon2d` function.
https://arxiv.org/abs/2303.10798

<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes #1234" use "Introduce new method to
calculate 1+1"
-->
### 📚 Description

<!-- Describe your changes here in detail -->
<!-- Why is this change required? What problem does it solve? -->
<!-- If it resolves an open issue, please link to the issue here. For
example "Closes #1337" -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [x] I have made sure that the title is self-explanatory and the
description concisely explains the PR.
- [ ] I have linked an issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation accordingly.

### ⌛ Dependencies
<!-- List all open pull requests that this PR logically depends on -->
<!--
- #xyz: short description why this is a dependency
- #abc: ...
-->
    
URL: #35331
Reported by: Moritz Firsching
Reviewer(s): Matthias Köppe
  • Loading branch information
Release Manager committed Apr 4, 2023
2 parents ea73835 + e9e52ea commit 4134050
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doc/en/reference/references/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5594,6 +5594,10 @@ REFERENCES:
Journal of Cryptology. 12. 193-196. 1999.
:doi:`10.1007/s001459900052`.
.. [Smi2023] \D. Smith, J. S. Myers, C. S. Kaplan and C. Goodman-Strauss,
*An aperiodic monotile*,
:arxiv:`2303.10798`
.. [SP2010] Fernando Solano and Michal Pioro, *Lightpath Reconfiguration in WDM
networks*, IEEE/OSA Journal of Optical Communication and Networking
2(12):1010-1021, 2010. :doi:`10.1364/JOCN.2.001010`.
Expand Down
15 changes: 15 additions & 0 deletions src/sage/plot/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,21 @@ def polygon2d(points, **options):
P = polygon2d(v, legend_label='some form')
sphinx_plot(P)
An aperiodic monotile, [Smi2023]_::
sage: s = sqrt(3)
sage: polygon2d([[0, 0], [0, s], [1, s], [3/2, 3/2*s], [3, s], [3, 0], [4, 0],
....: [9/2, -1/2*s], [3, -s], [3/2, -1/2*s], [1, -s], [-1, -s],
....: [-3/2, -1/2*s]], axes=False)
Graphics object consisting of 1 graphics primitive
.. PLOT::
s = sqrt(3)
P = polygon2d([[0, 0], [0, s], [1, s], [3/2, 3/2*s], [3, s], [3, 0], [4, 0], [9/2, -1/2*s], [3, -s], \
[3/2, -1/2*s], [1, -s], [-1, -s], [-3/2, -1/2*s]], axes=False)
sphinx_plot(P)
A purple hexagon::
sage: L = [[cos(pi*i/3),sin(pi*i/3)] for i in range(6)]
Expand Down

0 comments on commit 4134050

Please sign in to comment.