:orphan: .. _sphx_glr_tutorials: .. _tutorials: 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 <../gallery/index.html>`_. You can also find `external resources <../resources/index.html>`_ and a `FAQ <../faq/index.html>`_ in our `user guide <../contents.html>`_. .. raw:: html
.. _sphx_glr_tutorials_introductory: .. _tutorials-introductory: Introductory ------------- These tutorials cover the basics of creating visualizations with Matplotlib, as well as some best-practices in using the package effectively. .. raw:: html
.. only:: html .. figure:: /tutorials/introductory/images/thumb/sphx_glr_usage_thumb.png :alt: Usage Guide :ref:`sphx_glr_tutorials_introductory_usage.py` .. raw:: html
.. toctree:: :hidden: /tutorials/introductory/usage .. raw:: html
.. only:: html .. figure:: /tutorials/introductory/images/thumb/sphx_glr_pyplot_thumb.png :alt: Pyplot tutorial :ref:`sphx_glr_tutorials_introductory_pyplot.py` .. raw:: html
.. toctree:: :hidden: /tutorials/introductory/pyplot .. raw:: html
.. only:: html .. figure:: /tutorials/introductory/images/thumb/sphx_glr_sample_plots_thumb.png :alt: Sample plots in Matplotlib :ref:`sphx_glr_tutorials_introductory_sample_plots.py` .. raw:: html
.. toctree:: :hidden: /tutorials/introductory/sample_plots .. raw:: html
.. only:: html .. figure:: /tutorials/introductory/images/thumb/sphx_glr_images_thumb.png :alt: Image tutorial :ref:`sphx_glr_tutorials_introductory_images.py` .. raw:: html
.. toctree:: :hidden: /tutorials/introductory/images .. raw:: html
.. only:: html .. figure:: /tutorials/introductory/images/thumb/sphx_glr_lifecycle_thumb.png :alt: The Lifecycle of a Plot :ref:`sphx_glr_tutorials_introductory_lifecycle.py` .. raw:: html
.. toctree:: :hidden: /tutorials/introductory/lifecycle .. raw:: html
.. only:: html .. figure:: /tutorials/introductory/images/thumb/sphx_glr_customizing_thumb.png :alt: Customizing Matplotlib with style sheets and rcParams :ref:`sphx_glr_tutorials_introductory_customizing.py` .. raw:: html
.. toctree:: :hidden: /tutorials/introductory/customizing .. raw:: html
.. _sphx_glr_tutorials_intermediate: .. _tutorials-intermediate: Intermediate ------------ These tutorials cover some of the more complicated classes and functions in Matplotlib. They can be useful for particular custom and complex visualizations. .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_artists_thumb.png :alt: Artist tutorial :ref:`sphx_glr_tutorials_intermediate_artists.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/artists .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_legend_guide_thumb.png :alt: Legend guide :ref:`sphx_glr_tutorials_intermediate_legend_guide.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/legend_guide .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_color_cycle_thumb.png :alt: Styling with cycler :ref:`sphx_glr_tutorials_intermediate_color_cycle.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/color_cycle .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_gridspec_thumb.png :alt: Customizing Figure Layouts Using GridSpec and Other Functions :ref:`sphx_glr_tutorials_intermediate_gridspec.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/gridspec .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_constrainedlayout_guide_thumb.png :alt: Constrained Layout Guide :ref:`sphx_glr_tutorials_intermediate_constrainedlayout_guide.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/constrainedlayout_guide .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_tight_layout_guide_thumb.png :alt: Tight Layout guide :ref:`sphx_glr_tutorials_intermediate_tight_layout_guide.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/tight_layout_guide .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_autoscale_thumb.png :alt: Autoscaling :ref:`sphx_glr_tutorials_intermediate_autoscale.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/autoscale .. raw:: html
.. only:: html .. figure:: /tutorials/intermediate/images/thumb/sphx_glr_imshow_extent_thumb.png :alt: *origin* and *extent* in `~.Axes.imshow` :ref:`sphx_glr_tutorials_intermediate_imshow_extent.py` .. raw:: html
.. toctree:: :hidden: /tutorials/intermediate/imshow_extent .. raw:: html
.. _sphx_glr_tutorials_advanced: .. _tutorials-advanced: Advanced -------- These tutorials cover advanced topics for experienced Matplotlib users and developers. .. raw:: html
.. only:: html .. figure:: /tutorials/advanced/images/thumb/sphx_glr_blitting_thumb.png :alt: Faster rendering by using blitting :ref:`sphx_glr_tutorials_advanced_blitting.py` .. raw:: html
.. toctree:: :hidden: /tutorials/advanced/blitting .. raw:: html
.. only:: html .. figure:: /tutorials/advanced/images/thumb/sphx_glr_path_tutorial_thumb.png :alt: Path Tutorial :ref:`sphx_glr_tutorials_advanced_path_tutorial.py` .. raw:: html
.. toctree:: :hidden: /tutorials/advanced/path_tutorial .. raw:: html
.. only:: html .. figure:: /tutorials/advanced/images/thumb/sphx_glr_patheffects_guide_thumb.png :alt: Path effects guide :ref:`sphx_glr_tutorials_advanced_patheffects_guide.py` .. raw:: html
.. toctree:: :hidden: /tutorials/advanced/patheffects_guide .. raw:: html
.. only:: html .. figure:: /tutorials/advanced/images/thumb/sphx_glr_transforms_tutorial_thumb.png :alt: Transformations Tutorial :ref:`sphx_glr_tutorials_advanced_transforms_tutorial.py` .. raw:: html
.. toctree:: :hidden: /tutorials/advanced/transforms_tutorial .. raw:: html
.. _sphx_glr_tutorials_colors: .. _tutorials-colors: 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 `. .. raw:: html
.. only:: html .. figure:: /tutorials/colors/images/thumb/sphx_glr_colors_thumb.png :alt: Specifying Colors :ref:`sphx_glr_tutorials_colors_colors.py` .. raw:: html
.. toctree:: :hidden: /tutorials/colors/colors .. raw:: html
.. only:: html .. figure:: /tutorials/colors/images/thumb/sphx_glr_colorbar_only_thumb.png :alt: Customized Colorbars Tutorial :ref:`sphx_glr_tutorials_colors_colorbar_only.py` .. raw:: html
.. toctree:: :hidden: /tutorials/colors/colorbar_only .. raw:: html
.. only:: html .. figure:: /tutorials/colors/images/thumb/sphx_glr_colormap-manipulation_thumb.png :alt: Creating Colormaps in Matplotlib :ref:`sphx_glr_tutorials_colors_colormap-manipulation.py` .. raw:: html
.. toctree:: :hidden: /tutorials/colors/colormap-manipulation .. raw:: html
.. only:: html .. figure:: /tutorials/colors/images/thumb/sphx_glr_colormapnorms_thumb.png :alt: Colormap Normalization :ref:`sphx_glr_tutorials_colors_colormapnorms.py` .. raw:: html
.. toctree:: :hidden: /tutorials/colors/colormapnorms .. raw:: html
.. only:: html .. figure:: /tutorials/colors/images/thumb/sphx_glr_colormaps_thumb.png :alt: Choosing Colormaps in Matplotlib :ref:`sphx_glr_tutorials_colors_colormaps.py` .. raw:: html
.. toctree:: :hidden: /tutorials/colors/colormaps .. raw:: html
.. _sphx_glr_tutorials_provisional: .. _tutorials-provisional: Provisional ----------- These tutorials cover proposed APIs of any complexity. These are here to document features that we have released, but want to get user feedback on before committing to them. Please have a look, try them out and give us feedback on `gitter `__, `discourse `__, or the `the mailing list `__! But, be aware that we may change the APIs without warning in subsequent versions. .. raw:: html
.. only:: html .. figure:: /tutorials/provisional/images/thumb/sphx_glr_mosaic_thumb.png :alt: Complex and semantic figure composition :ref:`sphx_glr_tutorials_provisional_mosaic.py` .. raw:: html
.. toctree:: :hidden: /tutorials/provisional/mosaic .. raw:: html
.. _sphx_glr_tutorials_text: .. _tutorials-text: 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. .. raw:: html
.. only:: html .. figure:: /tutorials/text/images/thumb/sphx_glr_text_intro_thumb.png :alt: Text in Matplotlib Plots :ref:`sphx_glr_tutorials_text_text_intro.py` .. raw:: html
.. toctree:: :hidden: /tutorials/text/text_intro .. raw:: html
.. only:: html .. figure:: /tutorials/text/images/thumb/sphx_glr_text_props_thumb.png :alt: Text properties and layout :ref:`sphx_glr_tutorials_text_text_props.py` .. raw:: html
.. toctree:: :hidden: /tutorials/text/text_props .. raw:: html
.. only:: html .. figure:: /tutorials/text/images/thumb/sphx_glr_annotations_thumb.png :alt: Annotations :ref:`sphx_glr_tutorials_text_annotations.py` .. raw:: html
.. toctree:: :hidden: /tutorials/text/annotations .. raw:: html
.. only:: html .. figure:: /tutorials/text/images/thumb/sphx_glr_mathtext_thumb.png :alt: Writing mathematical expressions :ref:`sphx_glr_tutorials_text_mathtext.py` .. raw:: html
.. toctree:: :hidden: /tutorials/text/mathtext .. raw:: html
.. only:: html .. figure:: /tutorials/text/images/thumb/sphx_glr_pgf_thumb.png :alt: Typesetting With XeLaTeX/LuaLaTeX :ref:`sphx_glr_tutorials_text_pgf.py` .. raw:: html
.. toctree:: :hidden: /tutorials/text/pgf .. raw:: html
.. only:: html .. figure:: /tutorials/text/images/thumb/sphx_glr_usetex_thumb.png :alt: Text rendering With LaTeX :ref:`sphx_glr_tutorials_text_usetex.py` .. raw:: html
.. toctree:: :hidden: /tutorials/text/usetex .. raw:: html
.. _sphx_glr_tutorials_toolkits: .. _tutorials-toolkits: Toolkits -------- These tutorials cover toolkits designed to extend the functionality of Matplotlib in order to accomplish specific goals. .. raw:: html
.. only:: html .. figure:: /tutorials/toolkits/images/thumb/sphx_glr_axes_grid_thumb.png :alt: Overview of axes_grid1 toolkit :ref:`sphx_glr_tutorials_toolkits_axes_grid.py` .. raw:: html
.. toctree:: :hidden: /tutorials/toolkits/axes_grid .. raw:: html
.. only:: html .. figure:: /tutorials/toolkits/images/thumb/sphx_glr_axisartist_thumb.png :alt: Overview of axisartist toolkit :ref:`sphx_glr_tutorials_toolkits_axisartist.py` .. raw:: html
.. toctree:: :hidden: /tutorials/toolkits/axisartist .. raw:: html
.. only:: html .. figure:: /tutorials/toolkits/images/thumb/sphx_glr_mplot3d_thumb.png :alt: The mplot3d Toolkit :ref:`sphx_glr_tutorials_toolkits_mplot3d.py` .. raw:: html
.. toctree:: :hidden: /tutorials/toolkits/mplot3d .. raw:: html
.. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: tutorials_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: tutorials_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature Keywords: matplotlib code example, codex, python plot, pyplot `Gallery generated by Sphinx-Gallery `_