Skip to content

Fix heading hierarchy in annotation tutorial. #13517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions tutorials/text/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.. _annotations-tutorial:

Basic annotation
================
----------------

The uses of the basic :func:`~matplotlib.pyplot.text` will place text
at an arbitrary position on the Axes. A common use case of text is to
Expand Down Expand Up @@ -103,12 +103,11 @@

.. _plotting-guide-annotation:

Advanced Annotation
===================

Advanced Annotations
--------------------

Annotating with Text with Box
-----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Let's start with a simple example.

Expand Down Expand Up @@ -173,10 +172,8 @@
bb.set_boxstyle("rarrow,pad=0.6")




Annotating with Arrow
---------------------
~~~~~~~~~~~~~~~~~~~~~

The :func:`~matplotlib.pyplot.annotate` function in the pyplot module
(or annotate method of the Axes class) is used to draw an arrow
Expand Down Expand Up @@ -330,7 +327,7 @@


Placing Artist at the anchored location of the Axes
---------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There are classes of artists that can be placed at an anchored location
in the Axes. A common example is the legend. This type of artist can
Expand Down Expand Up @@ -426,7 +423,7 @@
to IdentityTransform by default.

Using Complex Coordinates with Annotations
------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Annotation in matplotlib supports several types of coordinates as
described in :ref:`annotations-tutorial`. For an advanced user who wants
Expand Down Expand Up @@ -517,7 +514,7 @@
:doc:`/gallery/text_labels_and_annotations/annotation_demo`.

Using ConnectionPatch
---------------------
~~~~~~~~~~~~~~~~~~~~~

The ConnectionPatch is like an annotation without text. While the annotate
function is recommended in most situations, the ConnectionPatch is useful when
Expand Down Expand Up @@ -546,10 +543,10 @@


Advanced Topics
~~~~~~~~~~~~~~~
---------------

Zoom effect between Axes
------------------------
~~~~~~~~~~~~~~~~~~~~~~~~

``mpl_toolkits.axes_grid1.inset_locator`` defines some patch classes useful
for interconnecting two axes. Understanding the code requires some
Expand All @@ -566,7 +563,7 @@


Define Custom BoxStyle
----------------------
~~~~~~~~~~~~~~~~~~~~~~

You can use a custom box style. The value for the ``boxstyle`` can be a
callable object in the following forms.::
Expand Down