Skip to content

Latest commit

 

History

History
645 lines (329 loc) · 12.2 KB

File metadata and controls

645 lines (329 loc) · 12.2 KB
orphan:

Tutorials

This page contains more in-depth guides for using Matplotlib. It is broken up into beginner, intermediate, and advanced sections, as well as sections covering specific topics.

For shorter examples, see our examples page. You can also find external resources and a FAQ in our user guide.

Introductory

These tutorials cover the basics of creating visualizations with Matplotlib, as well as some best-practices in using the package effectively.

.. only:: html

    .. figure:: /tutorials/01_introductory/images/thumb/sphx_glr_sample_plots_thumb.png

        :ref:`sphx_glr_tutorials_01_introductory_sample_plots.py`
.. toctree::
   :hidden:

   /tutorials/01_introductory/sample_plots
.. only:: html

    .. figure:: /tutorials/01_introductory/images/thumb/sphx_glr_customizing_thumb.png

        :ref:`sphx_glr_tutorials_01_introductory_customizing.py`
.. toctree::
   :hidden:

   /tutorials/01_introductory/customizing
.. only:: html

    .. figure:: /tutorials/01_introductory/images/thumb/sphx_glr_images_thumb.png

        :ref:`sphx_glr_tutorials_01_introductory_images.py`
.. toctree::
   :hidden:

   /tutorials/01_introductory/images
.. only:: html

    .. figure:: /tutorials/01_introductory/images/thumb/sphx_glr_usage_thumb.png

        :ref:`sphx_glr_tutorials_01_introductory_usage.py`
.. toctree::
   :hidden:

   /tutorials/01_introductory/usage
.. only:: html

    .. figure:: /tutorials/01_introductory/images/thumb/sphx_glr_pyplot_thumb.png

        :ref:`sphx_glr_tutorials_01_introductory_pyplot.py`
.. toctree::
   :hidden:

   /tutorials/01_introductory/pyplot
.. only:: html

    .. figure:: /tutorials/01_introductory/images/thumb/sphx_glr_lifecycle_thumb.png

        :ref:`sphx_glr_tutorials_01_introductory_lifecycle.py`
.. toctree::
   :hidden:

   /tutorials/01_introductory/lifecycle

Intermediate

These tutorials cover some of the more complicated classes and functions in Matplotlib. They can be useful for particular custom and complex visualizations.

.. only:: html

    .. figure:: /tutorials/02_intermediate/images/thumb/sphx_glr_legend_guide_thumb.png

        :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py`
.. toctree::
   :hidden:

   /tutorials/02_intermediate/legend_guide
.. only:: html

    .. figure:: /tutorials/02_intermediate/images/thumb/sphx_glr_artists_thumb.png

        :ref:`sphx_glr_tutorials_02_intermediate_artists.py`
.. toctree::
   :hidden:

   /tutorials/02_intermediate/artists
.. only:: html

    .. figure:: /tutorials/02_intermediate/images/thumb/sphx_glr_gridspec_thumb.png

        :ref:`sphx_glr_tutorials_02_intermediate_gridspec.py`
.. toctree::
   :hidden:

   /tutorials/02_intermediate/gridspec
.. only:: html

    .. figure:: /tutorials/02_intermediate/images/thumb/sphx_glr_tight_layout_guide_thumb.png

        :ref:`sphx_glr_tutorials_02_intermediate_tight_layout_guide.py`
.. toctree::
   :hidden:

   /tutorials/02_intermediate/tight_layout_guide

Advanced

These tutorials cover advanced topics for experienced Matplotlib users and developers.

.. only:: html

    .. figure:: /tutorials/03_advanced/images/thumb/sphx_glr_patheffects_guide_thumb.png

        :ref:`sphx_glr_tutorials_03_advanced_patheffects_guide.py`
.. toctree::
   :hidden:

   /tutorials/03_advanced/patheffects_guide
.. only:: html

    .. figure:: /tutorials/03_advanced/images/thumb/sphx_glr_path_tutorial_thumb.png

        :ref:`sphx_glr_tutorials_03_advanced_path_tutorial.py`
.. toctree::
   :hidden:

   /tutorials/03_advanced/path_tutorial
.. only:: html

    .. figure:: /tutorials/03_advanced/images/thumb/sphx_glr_transforms_tutorial_thumb.png

        :ref:`sphx_glr_tutorials_03_advanced_transforms_tutorial.py`
.. toctree::
   :hidden:

   /tutorials/03_advanced/transforms_tutorial

Colors

Matplotlib has support for visualizing information with a wide array of colors and colormaps. These tutorials cover the basics of how these colormaps look, how you can create your own, and how you can customize colormaps for your use case.

For even more information see the :ref:`examples page <color_examples>`.

.. only:: html

    .. figure:: /tutorials/colors/images/thumb/sphx_glr_colors_thumb.png

        :ref:`sphx_glr_tutorials_colors_colors.py`
.. toctree::
   :hidden:

   /tutorials/colors/colors
.. only:: html

    .. figure:: /tutorials/colors/images/thumb/sphx_glr_colorbar_only_thumb.png

        :ref:`sphx_glr_tutorials_colors_colorbar_only.py`
.. toctree::
   :hidden:

   /tutorials/colors/colorbar_only
.. only:: html

    .. figure:: /tutorials/colors/images/thumb/sphx_glr_colormapnorms_thumb.png

        :ref:`sphx_glr_tutorials_colors_colormapnorms.py`
.. toctree::
   :hidden:

   /tutorials/colors/colormapnorms
.. only:: html

    .. figure:: /tutorials/colors/images/thumb/sphx_glr_colormaps_thumb.png

        :ref:`sphx_glr_tutorials_colors_colormaps.py`
.. toctree::
   :hidden:

   /tutorials/colors/colormaps

Text

matplotlib has extensive text support, including support for mathematical expressions, truetype support for raster and vector outputs, newline separated text with arbitrary rotations, and unicode support. These tutorials cover the basics of working with text in Matplotlib.

.. only:: html

    .. figure:: /tutorials/text/images/thumb/sphx_glr_mathtext_thumb.png

        :ref:`sphx_glr_tutorials_text_mathtext.py`
.. toctree::
   :hidden:

   /tutorials/text/mathtext
.. only:: html

    .. figure:: /tutorials/text/images/thumb/sphx_glr_annotations_thumb.png

        :ref:`sphx_glr_tutorials_text_annotations.py`
.. toctree::
   :hidden:

   /tutorials/text/annotations
.. only:: html

    .. figure:: /tutorials/text/images/thumb/sphx_glr_pgf_thumb.png

        :ref:`sphx_glr_tutorials_text_pgf.py`
.. toctree::
   :hidden:

   /tutorials/text/pgf
.. only:: html

    .. figure:: /tutorials/text/images/thumb/sphx_glr_usetex_thumb.png

        :ref:`sphx_glr_tutorials_text_usetex.py`
.. toctree::
   :hidden:

   /tutorials/text/usetex
.. only:: html

    .. figure:: /tutorials/text/images/thumb/sphx_glr_text_intro_thumb.png

        :ref:`sphx_glr_tutorials_text_text_intro.py`
.. toctree::
   :hidden:

   /tutorials/text/text_intro
.. only:: html

    .. figure:: /tutorials/text/images/thumb/sphx_glr_text_props_thumb.png

        :ref:`sphx_glr_tutorials_text_text_props.py`
.. toctree::
   :hidden:

   /tutorials/text/text_props

Toolkits

These tutorials cover toolkits designed to extend the functionality of Matplotlib in order to accomplish specific goals.

.. only:: html

    .. figure:: /tutorials/toolkits/images/thumb/sphx_glr_axes_grid_thumb.png

        :ref:`sphx_glr_tutorials_toolkits_axes_grid.py`
.. toctree::
   :hidden:

   /tutorials/toolkits/axes_grid
.. only:: html

    .. figure:: /tutorials/toolkits/images/thumb/sphx_glr_mplot3d_thumb.png

        :ref:`sphx_glr_tutorials_toolkits_mplot3d.py`
.. toctree::
   :hidden:

   /tutorials/toolkits/mplot3d
.. only:: html

    .. figure:: /tutorials/toolkits/images/thumb/sphx_glr_axisartist_thumb.png

        :ref:`sphx_glr_tutorials_toolkits_axisartist.py`
.. toctree::
   :hidden:

   /tutorials/toolkits/axisartist
.. rst-class:: sphx-glr-signature

    `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_