Skip to content

Commit 65e4893

Browse files
authored
Merge pull request matplotlib#13517 from anntzer/anntut
Fix heading hierarchy in annotation tutorial.
2 parents 0af2917 + 44a9190 commit 65e4893

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

tutorials/text/annotations.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
.. _annotations-tutorial:
1111
1212
Basic annotation
13-
================
13+
----------------
1414
1515
The uses of the basic :func:`~matplotlib.pyplot.text` will place text
1616
at an arbitrary position on the Axes. A common use case of text is to
@@ -103,12 +103,11 @@
103103
104104
.. _plotting-guide-annotation:
105105
106-
Advanced Annotation
107-
===================
108-
106+
Advanced Annotations
107+
--------------------
109108
110109
Annotating with Text with Box
111-
-----------------------------
110+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
112111
113112
Let's start with a simple example.
114113
@@ -173,10 +172,8 @@
173172
bb.set_boxstyle("rarrow,pad=0.6")
174173
175174
176-
177-
178175
Annotating with Arrow
179-
---------------------
176+
~~~~~~~~~~~~~~~~~~~~~
180177
181178
The :func:`~matplotlib.pyplot.annotate` function in the pyplot module
182179
(or annotate method of the Axes class) is used to draw an arrow
@@ -330,7 +327,7 @@
330327
331328
332329
Placing Artist at the anchored location of the Axes
333-
---------------------------------------------------
330+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
334331
335332
There are classes of artists that can be placed at an anchored location
336333
in the Axes. A common example is the legend. This type of artist can
@@ -426,7 +423,7 @@
426423
to IdentityTransform by default.
427424
428425
Using Complex Coordinates with Annotations
429-
------------------------------------------
426+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
430427
431428
The Annotation in matplotlib supports several types of coordinates as
432429
described in :ref:`annotations-tutorial`. For an advanced user who wants
@@ -517,7 +514,7 @@
517514
:doc:`/gallery/text_labels_and_annotations/annotation_demo`.
518515
519516
Using ConnectionPatch
520-
---------------------
517+
~~~~~~~~~~~~~~~~~~~~~
521518
522519
The ConnectionPatch is like an annotation without text. While the annotate
523520
function is recommended in most situations, the ConnectionPatch is useful when
@@ -546,10 +543,10 @@
546543
547544
548545
Advanced Topics
549-
~~~~~~~~~~~~~~~
546+
---------------
550547
551548
Zoom effect between Axes
552-
------------------------
549+
~~~~~~~~~~~~~~~~~~~~~~~~
553550
554551
``mpl_toolkits.axes_grid1.inset_locator`` defines some patch classes useful
555552
for interconnecting two axes. Understanding the code requires some
@@ -566,7 +563,7 @@
566563
567564
568565
Define Custom BoxStyle
569-
----------------------
566+
~~~~~~~~~~~~~~~~~~~~~~
570567
571568
You can use a custom box style. The value for the ``boxstyle`` can be a
572569
callable object in the following forms.::

0 commit comments

Comments
 (0)