.. _sphx_glr_gallery_text_labels_and_annotations:
.. _text_labels_and_annotations:
Text, labels and annotations
============================
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_accented_text_thumb.png
:alt: Using accented text in Matplotlib
:ref:`sphx_glr_gallery_text_labels_and_annotations_accented_text.py`
.. raw:: html
Using accented text in Matplotlib
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_angle_annotation_thumb.png
:alt: Scale invariant angle label
:ref:`sphx_glr_gallery_text_labels_and_annotations_angle_annotation.py`
.. raw:: html
Scale invariant angle label
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_annotation_demo_thumb.png
:alt: Annotating Plots
:ref:`sphx_glr_gallery_text_labels_and_annotations_annotation_demo.py`
.. raw:: html
Annotating Plots
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_arrow_demo_thumb.png
:alt: Arrow Demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_arrow_demo.py`
.. raw:: html
Arrow Demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_autowrap_thumb.png
:alt: Auto-wrapping text
:ref:`sphx_glr_gallery_text_labels_and_annotations_autowrap.py`
.. raw:: html
Auto-wrapping text
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_custom_legends_thumb.png
:alt: Composing Custom Legends
:ref:`sphx_glr_gallery_text_labels_and_annotations_custom_legends.py`
.. raw:: html
Composing Custom Legends
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_date_thumb.png
:alt: Date tick labels
:ref:`sphx_glr_gallery_text_labels_and_annotations_date.py`
.. raw:: html
Date tick labels
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_demo_annotation_box_thumb.png
:alt: AnnotationBbox demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_demo_annotation_box.py`
.. raw:: html
AnnotationBbox demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_demo_text_path_thumb.png
:alt: Using a text as a Path
:ref:`sphx_glr_gallery_text_labels_and_annotations_demo_text_path.py`
.. raw:: html
Using a text as a Path
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_demo_text_rotation_mode_thumb.png
:alt: Text Rotation Mode
:ref:`sphx_glr_gallery_text_labels_and_annotations_demo_text_rotation_mode.py`
.. raw:: html
Text Rotation Mode
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_dfrac_demo_thumb.png
:alt: The difference between \\dfrac and \\frac
:ref:`sphx_glr_gallery_text_labels_and_annotations_dfrac_demo.py`
.. raw:: html
The difference between \\dfrac and \\frac
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_engineering_formatter_thumb.png
:alt: Labeling ticks using engineering notation
:ref:`sphx_glr_gallery_text_labels_and_annotations_engineering_formatter.py`
.. raw:: html
Labeling ticks using engineering notation
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fancyarrow_demo_thumb.png
:alt: Annotation arrow style reference
:ref:`sphx_glr_gallery_text_labels_and_annotations_fancyarrow_demo.py`
.. raw:: html
Annotation arrow style reference
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fancytextbox_demo_thumb.png
:alt: Styling text boxes
:ref:`sphx_glr_gallery_text_labels_and_annotations_fancytextbox_demo.py`
.. raw:: html
Styling text boxes
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_figlegend_demo_thumb.png
:alt: Figure legend demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_figlegend_demo.py`
.. raw:: html
Figure legend demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_family_rc_thumb.png
:alt: Configuring the font family
:ref:`sphx_glr_gallery_text_labels_and_annotations_font_family_rc.py`
.. raw:: html
Configuring the font family
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_file_thumb.png
:alt: Using a ttf font file in Matplotlib
:ref:`sphx_glr_gallery_text_labels_and_annotations_font_file.py`
.. raw:: html
Using a ttf font file in Matplotlib
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_table_thumb.png
:alt: Font table
:ref:`sphx_glr_gallery_text_labels_and_annotations_font_table.py`
.. raw:: html
Font table
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fonts_demo_thumb.png
:alt: Fonts demo (object-oriented style)
:ref:`sphx_glr_gallery_text_labels_and_annotations_fonts_demo.py`
.. raw:: html
Fonts demo (object-oriented style)
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fonts_demo_kw_thumb.png
:alt: Fonts demo (keyword arguments)
:ref:`sphx_glr_gallery_text_labels_and_annotations_fonts_demo_kw.py`
.. raw:: html
Fonts demo (keyword arguments)
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_label_subplots_thumb.png
:alt: Labelling subplots
:ref:`sphx_glr_gallery_text_labels_and_annotations_label_subplots.py`
.. raw:: html
Labelling subplots
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_legend_thumb.png
:alt: Legend using pre-defined labels
:ref:`sphx_glr_gallery_text_labels_and_annotations_legend.py`
.. raw:: html
Legend using pre-defined labels
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_legend_demo_thumb.png
:alt: Legend Demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_legend_demo.py`
.. raw:: html
Legend Demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_line_with_text_thumb.png
:alt: Artist within an artist
:ref:`sphx_glr_gallery_text_labels_and_annotations_line_with_text.py`
.. raw:: html
Artist within an artist
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_asarray_thumb.png
:alt: Convert texts to images
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_asarray.py`
.. raw:: html
Convert texts to images
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_demo_thumb.png
:alt: Mathtext
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_demo.py`
.. raw:: html
Mathtext
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_examples_thumb.png
:alt: Mathtext Examples
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_examples.py`
.. raw:: html
Mathtext Examples
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_fontfamily_example_thumb.png
:alt: Math fontfamily
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_fontfamily_example.py`
.. raw:: html
Math fontfamily
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_multiline_thumb.png
:alt: Multiline
:ref:`sphx_glr_gallery_text_labels_and_annotations_multiline.py`
.. raw:: html
Multiline
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_placing_text_boxes_thumb.png
:alt: Placing text boxes
:ref:`sphx_glr_gallery_text_labels_and_annotations_placing_text_boxes.py`
.. raw:: html
Placing text boxes
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_rainbow_text_thumb.png
:alt: Rainbow text
:ref:`sphx_glr_gallery_text_labels_and_annotations_rainbow_text.py`
.. raw:: html
Rainbow text
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_stix_fonts_demo_thumb.png
:alt: STIX Fonts
:ref:`sphx_glr_gallery_text_labels_and_annotations_stix_fonts_demo.py`
.. raw:: html
STIX Fonts
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_tex_demo_thumb.png
:alt: Rendering math equations using TeX
:ref:`sphx_glr_gallery_text_labels_and_annotations_tex_demo.py`
.. raw:: html
Rendering math equations using TeX
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_alignment_thumb.png
:alt: Text alignment
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_alignment.py`
.. raw:: html
Text alignment
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_fontdict_thumb.png
:alt: Controlling style of text and labels using a dictionary
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_fontdict.py`
.. raw:: html
Controlling style of text and labels using a dictionary
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_rotation_thumb.png
:alt: Default text rotation demonstration
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_rotation.py`
.. raw:: html
Default text rotation demonstration
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_rotation_relative_to_line_thumb.png
:alt: Text Rotation Relative To Line
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_rotation_relative_to_line.py`
.. raw:: html
Text Rotation Relative To Line
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_titles_demo_thumb.png
:alt: Title positioning
:ref:`sphx_glr_gallery_text_labels_and_annotations_titles_demo.py`
.. raw:: html
Title positioning
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_unicode_minus_thumb.png
:alt: Unicode minus
:ref:`sphx_glr_gallery_text_labels_and_annotations_unicode_minus.py`
.. raw:: html
Unicode minus
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_usetex_baseline_test_thumb.png
:alt: Usetex Baseline Test
:ref:`sphx_glr_gallery_text_labels_and_annotations_usetex_baseline_test.py`
.. raw:: html
Usetex Baseline Test
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_usetex_fonteffects_thumb.png
:alt: Usetex Fonteffects
:ref:`sphx_glr_gallery_text_labels_and_annotations_usetex_fonteffects.py`
.. raw:: html
Usetex Fonteffects
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_watermark_text_thumb.png
:alt: Text watermark
:ref:`sphx_glr_gallery_text_labels_and_annotations_watermark_text.py`
.. raw:: html
Text watermark
.. raw:: html
.. toctree::
:hidden:
/gallery/text_labels_and_annotations/accented_text
/gallery/text_labels_and_annotations/angle_annotation
/gallery/text_labels_and_annotations/annotation_demo
/gallery/text_labels_and_annotations/arrow_demo
/gallery/text_labels_and_annotations/autowrap
/gallery/text_labels_and_annotations/custom_legends
/gallery/text_labels_and_annotations/date
/gallery/text_labels_and_annotations/demo_annotation_box
/gallery/text_labels_and_annotations/demo_text_path
/gallery/text_labels_and_annotations/demo_text_rotation_mode
/gallery/text_labels_and_annotations/dfrac_demo
/gallery/text_labels_and_annotations/engineering_formatter
/gallery/text_labels_and_annotations/fancyarrow_demo
/gallery/text_labels_and_annotations/fancytextbox_demo
/gallery/text_labels_and_annotations/figlegend_demo
/gallery/text_labels_and_annotations/font_family_rc
/gallery/text_labels_and_annotations/font_file
/gallery/text_labels_and_annotations/font_table
/gallery/text_labels_and_annotations/fonts_demo
/gallery/text_labels_and_annotations/fonts_demo_kw
/gallery/text_labels_and_annotations/label_subplots
/gallery/text_labels_and_annotations/legend
/gallery/text_labels_and_annotations/legend_demo
/gallery/text_labels_and_annotations/line_with_text
/gallery/text_labels_and_annotations/mathtext_asarray
/gallery/text_labels_and_annotations/mathtext_demo
/gallery/text_labels_and_annotations/mathtext_examples
/gallery/text_labels_and_annotations/mathtext_fontfamily_example
/gallery/text_labels_and_annotations/multiline
/gallery/text_labels_and_annotations/placing_text_boxes
/gallery/text_labels_and_annotations/rainbow_text
/gallery/text_labels_and_annotations/stix_fonts_demo
/gallery/text_labels_and_annotations/tex_demo
/gallery/text_labels_and_annotations/text_alignment
/gallery/text_labels_and_annotations/text_fontdict
/gallery/text_labels_and_annotations/text_rotation
/gallery/text_labels_and_annotations/text_rotation_relative_to_line
/gallery/text_labels_and_annotations/titles_demo
/gallery/text_labels_and_annotations/unicode_minus
/gallery/text_labels_and_annotations/usetex_baseline_test
/gallery/text_labels_and_annotations/usetex_fonteffects
/gallery/text_labels_and_annotations/watermark_text