Skip to content

Commit 4134050

Browse files
author
Release Manager
committed
gh-35331: Add monotile to polgyon examples 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
2 parents ea73835 + e9e52ea commit 4134050

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/doc/en/reference/references/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5594,6 +5594,10 @@ REFERENCES:
55945594
Journal of Cryptology. 12. 193-196. 1999.
55955595
:doi:`10.1007/s001459900052`.
55965596
5597+
.. [Smi2023] \D. Smith, J. S. Myers, C. S. Kaplan and C. Goodman-Strauss,
5598+
*An aperiodic monotile*,
5599+
:arxiv:`2303.10798`
5600+
55975601
.. [SP2010] Fernando Solano and Michal Pioro, *Lightpath Reconfiguration in WDM
55985602
networks*, IEEE/OSA Journal of Optical Communication and Networking
55995603
2(12):1010-1021, 2010. :doi:`10.1364/JOCN.2.001010`.

src/sage/plot/polygon.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,21 @@ def polygon2d(points, **options):
386386
P = polygon2d(v, legend_label='some form')
387387
sphinx_plot(P)
388388
389+
An aperiodic monotile, [Smi2023]_::
390+
391+
sage: s = sqrt(3)
392+
sage: polygon2d([[0, 0], [0, s], [1, s], [3/2, 3/2*s], [3, s], [3, 0], [4, 0],
393+
....: [9/2, -1/2*s], [3, -s], [3/2, -1/2*s], [1, -s], [-1, -s],
394+
....: [-3/2, -1/2*s]], axes=False)
395+
Graphics object consisting of 1 graphics primitive
396+
397+
.. PLOT::
398+
399+
s = sqrt(3)
400+
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], \
401+
[3/2, -1/2*s], [1, -s], [-1, -s], [-3/2, -1/2*s]], axes=False)
402+
sphinx_plot(P)
403+
389404
A purple hexagon::
390405
391406
sage: L = [[cos(pi*i/3),sin(pi*i/3)] for i in range(6)]

0 commit comments

Comments
 (0)