Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1f321f

Browse files
authored
Delete redundant examples from user gallery that are also present in the annotations tutorial (matplotlib#25153)
* added redirects in annotations.py header and deleted redundant annotate_* examples in gallery/userdemo
1 parent a929805 commit d1f321f

8 files changed

Lines changed: 9 additions & 178 deletions

File tree

examples/userdemo/anchored_box04.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

examples/userdemo/annotate_simple01.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/userdemo/annotate_simple02.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/userdemo/annotate_simple03.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/userdemo/annotate_simple04.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/userdemo/annotate_simple_coord01.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/userdemo/annotate_simple_coord03.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

tutorials/text/annotations.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
r"""
2+
.. redirect-from:: /gallery/userdemo/annotate_simple01
3+
.. redirect-from:: /gallery/userdemo/annotate_simple02
4+
.. redirect-from:: /gallery/userdemo/annotate_simple03
5+
.. redirect-from:: /gallery/userdemo/annotate_simple04
6+
.. redirect-from:: /gallery/userdemo/anchored_box04
7+
.. redirect-from:: /gallery/userdemo/annotate_simple_coord01
8+
.. redirect-from:: /gallery/userdemo/annotate_simple_coord03
9+
210
Annotations
311
===========
412
@@ -170,6 +178,7 @@
170178
#
171179
# Placing text annotations relative to data
172180
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181+
#
173182
# Annotations can be positioned at a relative offset to the *xy* input to
174183
# annotation by setting the *textcoords* keyword argument to ``'offset points'``
175184
# or ``'offset pixels'``.

0 commit comments

Comments
 (0)