:orphan:

.. _examples-index:

.. _gallery:

Gallery
=======

This gallery contains examples of the many things you can do with
Matplotlib. Click on any image to see the full image and source code.

For longer tutorials, see our `tutorials page <../tutorials/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

    <div style='clear:both'></div>

.. _animation_examples:

.. _animation-examples-index:

Animation Examples
==================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Pyplot animation example.">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_animation_demo_thumb.png

        :ref:`sphx_glr_gallery_animation_animation_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/animation_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An animation of random data.">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_random_data_thumb.png

        :ref:`sphx_glr_gallery_animation_random_data.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/random_data

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to animate an image. ">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_dynamic_image_thumb.png

        :ref:`sphx_glr_gallery_animation_dynamic_image.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/dynamic_image

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A simple example of an animated plot ">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_simple_anim_thumb.png

        :ref:`sphx_glr_gallery_animation_simple_anim.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/simple_anim

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example uses a MovieWriter directly to grab individual frames and write them to a file. Th...">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_moviewriter_sgskip_thumb.png

        :ref:`sphx_glr_gallery_animation_moviewriter_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/moviewriter_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This examples demonstrates how to animate an image from a list of images (or Artists). ">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_dynamic_image2_thumb.png

        :ref:`sphx_glr_gallery_animation_dynamic_image2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/dynamic_image2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases a sinusoidal decay animation. ">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_animate_decay_thumb.png

        :ref:`sphx_glr_gallery_animation_animate_decay.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/animate_decay

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_image_slices_viewer_thumb.png

        :ref:`sphx_glr_gallery_animation_image_slices_viewer.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/image_slices_viewer

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example contains two animations. The first is a random walk plot. The second is an image a...">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_basic_example_thumb.png

        :ref:`sphx_glr_gallery_animation_basic_example.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/basic_example

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases the same animations as `basic_example.py`, but instead of displaying the...">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_basic_example_writer_sgskip_thumb.png

        :ref:`sphx_glr_gallery_animation_basic_example_writer_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/basic_example_writer_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Emulates an oscilloscope. ">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_strip_chart_demo_thumb.png

        :ref:`sphx_glr_gallery_animation_strip_chart_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/strip_chart_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This animation displays the posterior estimate updates as it is refitted when new data arrives....">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_bayes_update_sgskip_thumb.png

        :ref:`sphx_glr_gallery_animation_bayes_update_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/bayes_update_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use a path patch to draw a bunch of rectangles for an animated histog...">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_histogram_thumb.png

        :ref:`sphx_glr_gallery_animation_histogram.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/histogram

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Comparative path demonstration of frequency from a fake signal of a pulsar. (mostly known becau...">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_unchained_thumb.png

        :ref:`sphx_glr_gallery_animation_unchained.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/unchained

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A simple example of an animated plot... In 3D! ">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_simple_3danim_thumb.png

        :ref:`sphx_glr_gallery_animation_simple_3danim.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/simple_3danim

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This animation illustrates the double pendulum problem.">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_double_pendulum_animated_sgskip_thumb.png

        :ref:`sphx_glr_gallery_animation_double_pendulum_animated_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/double_pendulum_animated_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simulates rain drops on a surface by animating the scale and opacity of 50 scatter points.">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_rain_thumb.png

        :ref:`sphx_glr_gallery_animation_rain.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/rain

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example uses subclassing, but there is no reason that the proper function couldn&#x27;t be set ...">

.. only:: html

    .. figure:: /gallery/animation/images/thumb/sphx_glr_subplots_thumb.png

        :ref:`sphx_glr_gallery_animation_subplots.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/subplots
.. raw:: html

    <div style='clear:both'></div>

.. _api_examples:

Matplotlib API
==============

These examples use the Matplotlib api rather than the pylab/pyplot
procedural state machine.  For robust, production level scripts, or
for applications or web application servers, we recommend you use the
Matplotlib API directly as it gives you the maximum control over your
figures, axes and plottng commands.

The example agg_oo.py is the simplest example of using the Agg backend
which is readily ported to other output formats.  This example is a
good starting point if your are a web application developer.  Many of
the other examples in this directory use ``matplotlib.pyplot`` just to
create the figure and show calls, and use the API for everything else.
This is a good solution for production quality scripts.  For full
fledged GUI applications, see the user_interfaces examples.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can explicitly set which font family is picked up for a given font style (e.g., &#x27;serif&#x27;, &#x27;s...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_font_family_rc_sgskip_thumb.png

        :ref:`sphx_glr_gallery_api_font_family_rc_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/font_family_rc_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A pure OO (look Ma, no pylab!) example using the agg backend">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_agg_oo_sgskip_thumb.png

        :ref:`sphx_glr_gallery_api_agg_oo_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/agg_oo_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can use the proper typesetting Unicode minus (see https://en.wikipedia.org/wiki/Plus_sign#P...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_unicode_minus_thumb.png

        :ref:`sphx_glr_gallery_api_unicode_minus.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/unicode_minus

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo to show use of the engineering Formatter. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_engineering_formatter_thumb.png

        :ref:`sphx_glr_gallery_api_engineering_formatter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/engineering_formatter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Use a Text as a watermark ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_watermark_text_thumb.png

        :ref:`sphx_glr_gallery_api_watermark_text.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/watermark_text

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases the PathPatch object to create a Bezier polycurve path patch. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_quad_bezier_thumb.png

        :ref:`sphx_glr_gallery_api_quad_bezier.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/quad_bezier

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Notice how the legend labels are defined with the plots! ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_legend_thumb.png

        :ref:`sphx_glr_gallery_api_legend.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/legend

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Use a PNG file as a watermark ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_watermark_image_thumb.png

        :ref:`sphx_glr_gallery_api_watermark_image.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/watermark_image

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to modify the coordinate formatter to report the image &quot;z&quot; value of the nearest pixel ...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_image_zcoord_thumb.png

        :ref:`sphx_glr_gallery_api_image_zcoord.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/image_zcoord

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustrate some helper functions for shading regions where a logical mask is True">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_span_regions_thumb.png

        :ref:`sphx_glr_gallery_api_span_regions.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/span_regions

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Make a compound path -- in this case two simple polygons, a rectangle and a triangle.  Use CLOS...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_compound_path_thumb.png

        :ref:`sphx_glr_gallery_api_compound_path.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/compound_path

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to make images from LaTeX strings. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_mathtext_asarray_thumb.png

        :ref:`sphx_glr_gallery_api_mathtext_asarray.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/mathtext_asarray

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The lines intersecting the rectangle are colored in red, while the others are left as blue line...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_bbox_intersect_thumb.png

        :ref:`sphx_glr_gallery_api_bbox_intersect.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/bbox_intersect

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Let&#x27;s explore various normalization on a multivariate normal distribution.">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_power_norm_thumb.png

        :ref:`sphx_glr_gallery_api_power_norm.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/power_norm

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustrate the three different join styles ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_joinstyle_thumb.png

        :ref:`sphx_glr_gallery_api_joinstyle.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/joinstyle

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use colorbar by specifying the mappable object (here the imshow retur...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_colorbar_basics_thumb.png

        :ref:`sphx_glr_gallery_api_colorbar_basics.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/colorbar_basics

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Although it is usually not a good idea to explicitly point to a single ttf file for a font inst...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_font_file_sgskip_thumb.png

        :ref:`sphx_glr_gallery_api_font_file_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/font_file_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use a path patch to draw a bunch of rectangles.  The technique of usi...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_histogram_path_thumb.png

        :ref:`sphx_glr_gallery_api_histogram_path.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/histogram_path

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A bar plot with errorbars and height labels on individual bars ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_barchart_thumb.png

        :ref:`sphx_glr_gallery_api_barchart.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/barchart

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate how to do two plots on the same axes with different left and right scales.">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_two_scales_thumb.png

        :ref:`sphx_glr_gallery_api_two_scales.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/two_scales

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example makes custom &#x27;pie charts&#x27; as the markers for a scatter plot.">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_scatter_piecharts_thumb.png

        :ref:`sphx_glr_gallery_api_scatter_piecharts.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/scatter_piecharts

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="When plotting time series, e.g., financial time series, one often wants to leave out days on wh...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_date_index_formatter_thumb.png

        :ref:`sphx_glr_gallery_api_date_index_formatter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/date_index_formatter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to use patch collections. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_patch_collection_thumb.png

        :ref:`sphx_glr_gallery_api_patch_collection.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/patch_collection

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="For the backends that support draw_image with optional affine transform (e.g., agg, ps backend)...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_affine_image_thumb.png

        :ref:`sphx_glr_gallery_api_affine_image.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/affine_image

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to make date plots in matplotlib using date tick locators and formatters.  See major_m...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_date_thumb.png

        :ref:`sphx_glr_gallery_api_date.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/date

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example draws donuts (miam!) using Path and Patches. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_donut_thumb.png

        :ref:`sphx_glr_gallery_api_donut.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/donut

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate/test the Sankey class by producing a long chain of connections. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_sankey_links_thumb.png

        :ref:`sphx_glr_gallery_api_sankey_links.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/sankey_links

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to override basic methods so an artist can contain another artist.  In this case, the ...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_line_with_text_thumb.png

        :ref:`sphx_glr_gallery_api_line_with_text.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/line_with_text

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Displays some matplotlib logos.">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_logos2_thumb.png

        :ref:`sphx_glr_gallery_api_logos2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/logos2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate the Sankey class by producing three basic diagrams. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_sankey_basics_thumb.png

        :ref:`sphx_glr_gallery_api_sankey_basics.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/sankey_basics

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="For the first two subplots, we will use spirals.  Their size will be set in plot units, not dat...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_collections_thumb.png

        :ref:`sphx_glr_gallery_api_collections.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/collections

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate the Sankey class with a practical example of a Rankine power cycle.">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_sankey_rankine_thumb.png

        :ref:`sphx_glr_gallery_api_sankey_rankine.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/sankey_rankine

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases how to create a custom scale, by implementing the scaling use for latitu...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_custom_scale_example_thumb.png

        :ref:`sphx_glr_gallery_api_custom_scale_example.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/custom_scale_example

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases the hatching capabilities of matplotlib by plotting various histograms. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_filled_step_thumb.png

        :ref:`sphx_glr_gallery_api_filled_step.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/filled_step

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example creates a radar chart, also known as a spider or star chart [1]_.">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_radar_chart_thumb.png

        :ref:`sphx_glr_gallery_api_radar_chart.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/radar_chart

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This serves as an intensive exercise of matplotlib&#x27;s transforms and custom projection API. This...">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_skewt_thumb.png

        :ref:`sphx_glr_gallery_api_skewt.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/skewt

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases the Hammer projection by alleviating many features of matplotlib. ">

.. only:: html

    .. figure:: /gallery/api/images/thumb/sphx_glr_custom_projection_example_thumb.png

        :ref:`sphx_glr_gallery_api_custom_projection_example.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/api/custom_projection_example
.. raw:: html

    <div style='clear:both'></div>

.. _axes_grid_examples:

.. _axes_grid1-examples-index:

Axes Grid
=========



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_imagegrid_aspect_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_imagegrid_aspect.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_imagegrid_aspect

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_colorbar_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_colorbar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_colorbar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axesgrid_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_axesgrid.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_axesgrid

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_new_colorbar_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_new_colorbar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_new_colorbar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_parasite_simple_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_parasite_simple.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/parasite_simple

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axisline4_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_axisline4.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_axisline4

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_colorbar_with_axes_divider_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_colorbar_with_axes_divider.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_colorbar_with_axes_divider

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_rgb_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_rgb.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_rgb

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axesgrid2_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_axesgrid2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_axesgrid2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axes_divider1_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_axes_divider1.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_axes_divider1

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axes_divider2_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_axes_divider2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_axes_divider2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axes_divider3_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_axes_divider3.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_axes_divider3

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_colorbar_with_inset_locator_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_colorbar_with_inset_locator.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_colorbar_with_inset_locator

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_colorbar_of_inset_axes_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_colorbar_of_inset_axes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_colorbar_of_inset_axes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_inset_locator_demo_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_inset_locator_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/inset_locator_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_parasite_simple2_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_parasite_simple2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/parasite_simple2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_fixed_size_axes_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_fixed_size_axes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_fixed_size_axes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_inset_locator_demo2_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_inset_locator_demo2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/inset_locator_demo2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_hbox_divider_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_axes_hbox_divider.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_axes_hbox_divider

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_scatter_hist_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_scatter_hist.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/scatter_hist

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_make_room_for_ylabel_using_axesgrid_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_make_room_for_ylabel_using_axesgrid.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/make_room_for_ylabel_using_axesgrid

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_rgb_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_axes_rgb.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_axes_rgb

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_anchored_artists_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_simple_anchored_artists.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/simple_anchored_artists

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_edge_colorbar_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_edge_colorbar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_edge_colorbar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_divider_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_axes_divider.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_axes_divider

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_grid2_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_axes_grid2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_axes_grid2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_grid_thumb.png

        :ref:`sphx_glr_gallery_axes_grid1_demo_axes_grid.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axes_grid1/demo_axes_grid
.. raw:: html

    <div style='clear:both'></div>

.. _axis_artist_examples:

.. _axisartist-examples-index:

Axis Artist
===========



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows some configurations for axis style. ">

.. only:: html

    .. figure:: /gallery/axisartist/images/thumb/sphx_glr_demo_axisline_style_thumb.png

        :ref:`sphx_glr_gallery_axisartist_demo_axisline_style.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axisartist/demo_axisline_style

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Parasite axis demo">

.. only:: html

    .. figure:: /gallery/axisartist/images/thumb/sphx_glr_demo_parasite_axes2_thumb.png

        :ref:`sphx_glr_gallery_axisartist_demo_parasite_axes2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axisartist/demo_parasite_axes2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Custom grid and ticklines.">

.. only:: html

    .. figure:: /gallery/axisartist/images/thumb/sphx_glr_demo_curvelinear_grid2_thumb.png

        :ref:`sphx_glr_gallery_axisartist_demo_curvelinear_grid2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axisartist/demo_curvelinear_grid2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Axis within rectangular frame">

.. only:: html

    .. figure:: /gallery/axisartist/images/thumb/sphx_glr_demo_floating_axis_thumb.png

        :ref:`sphx_glr_gallery_axisartist_demo_floating_axis.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axisartist/demo_floating_axis

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Custom grid and ticklines.">

.. only:: html

    .. figure:: /gallery/axisartist/images/thumb/sphx_glr_demo_curvelinear_grid_thumb.png

        :ref:`sphx_glr_gallery_axisartist_demo_curvelinear_grid.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axisartist/demo_curvelinear_grid

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of the floating axes.">

.. only:: html

    .. figure:: /gallery/axisartist/images/thumb/sphx_glr_demo_floating_axes_thumb.png

        :ref:`sphx_glr_gallery_axisartist_demo_floating_axes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/axisartist/demo_floating_axes
.. raw:: html

    <div style='clear:both'></div>

.. _color_examples:

Color
=====

For more in-depth information about the colormaps available in matplotlib
as well as a description of their properties,
see the :ref:`colormaps tutorial <tutorials-colors>`.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="matplotlib gives you 5 ways to specify colors,">

.. only:: html

    .. figure:: /gallery/color/images/thumb/sphx_glr_color_demo_thumb.png

        :ref:`sphx_glr_gallery_color_color_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/color/color_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Use masked arrays to plot a line with different colors by y-value. ">

.. only:: html

    .. figure:: /gallery/color/images/thumb/sphx_glr_color_by_yvalue_thumb.png

        :ref:`sphx_glr_gallery_color_color_by_yvalue.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/color/color_by_yvalue

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of custom property-cycle settings to control colors and other style properties for multi-l...">

.. only:: html

    .. figure:: /gallery/color/images/thumb/sphx_glr_color_cycle_thumb.png

        :ref:`sphx_glr_gallery_color_color_cycle.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/color/color_cycle

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Display the colors from the default prop_cycle. ">

.. only:: html

    .. figure:: /gallery/color/images/thumb/sphx_glr_color_cycle_default_thumb.png

        :ref:`sphx_glr_gallery_color_color_cycle_default.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/color/color_cycle_default

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simple plot example with the named colors and its visual representation. ">

.. only:: html

    .. figure:: /gallery/color/images/thumb/sphx_glr_named_colors_thumb.png

        :ref:`sphx_glr_gallery_color_named_colors.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/color/named_colors

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Some simple functions to generate colours.">

.. only:: html

    .. figure:: /gallery/color/images/thumb/sphx_glr_colors_sgskip_thumb.png

        :ref:`sphx_glr_gallery_color_colors_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/color/colors_sgskip
.. raw:: html

    <div style='clear:both'></div>

.. _event_handling_examples:

Event Handling
==============



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_close_event_thumb.png

        :ref:`sphx_glr_gallery_event_handling_close_event.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/close_event

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to connect to keypress events ">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_keypress_demo_thumb.png

        :ref:`sphx_glr_gallery_event_handling_keypress_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/keypress_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simple example of using general timer objects. This is used to update the time placed in the ti...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_timers_thumb.png

        :ref:`sphx_glr_gallery_event_handling_timers.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/timers

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to connect events in one window, for example, a mouse press, to another ...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_zoom_window_thumb.png

        :ref:`sphx_glr_gallery_event_handling_zoom_window.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/zoom_window

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="compute the mean and standard deviation (stddev) of 100 data sets and plot mean vs stddev.  Whe...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_pick_event_demo2_thumb.png

        :ref:`sphx_glr_gallery_event_handling_pick_event_demo2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/pick_event_demo2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A small game demo using Matplotlib.">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_pong_sgskip_thumb.png

        :ref:`sphx_glr_gallery_event_handling_pong_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/pong_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Enable picking on the legend to toggle the original line on and off ">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_legend_picking_thumb.png

        :ref:`sphx_glr_gallery_event_handling_legend_picking.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/legend_picking

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustrate the figure and axes enter and leave events by changing the frame colors on enter and...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_figure_axes_enter_leave_thumb.png

        :ref:`sphx_glr_gallery_event_handling_figure_axes_enter_leave.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/figure_axes_enter_leave

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_looking_glass_thumb.png

        :ref:`sphx_glr_gallery_event_handling_looking_glass.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/looking_glass

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example showing the use of a TriFinder object.  As the mouse is moved over the triangulation, t...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_trifinder_event_demo_thumb.png

        :ref:`sphx_glr_gallery_event_handling_trifinder_event_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/trifinder_event_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Downsampling lowers the sample rate or sample size of a signal. In this tutorial, the signal is...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_resample_thumb.png

        :ref:`sphx_glr_gallery_event_handling_resample.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/resample

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to use a lasso to select a set of points and get the indices of the selected points.  ...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_lasso_demo_thumb.png

        :ref:`sphx_glr_gallery_event_handling_lasso_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/lasso_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_data_browser_thumb.png

        :ref:`sphx_glr_gallery_event_handling_data_browser.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/data_browser

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Creates two identical panels.  Zooming in on the right panel will show a rectangle in the first...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_viewlims_thumb.png

        :ref:`sphx_glr_gallery_event_handling_viewlims.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/viewlims

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip=" You can enable picking by setting the &quot;picker&quot; property of an artist (for example, a matplotli...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_pick_event_demo_thumb.png

        :ref:`sphx_glr_gallery_event_handling_pick_event_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/pick_event_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_path_editor_thumb.png

        :ref:`sphx_glr_gallery_event_handling_path_editor.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/path_editor

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is an example to show how to build cross-GUI applications using Matplotlib event handling ...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_poly_editor_thumb.png

        :ref:`sphx_glr_gallery_event_handling_poly_editor.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/poly_editor

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A Matplotlib based game of Pong illustrating one way to write interactive animation which are e...">

.. only:: html

    .. figure:: /gallery/event_handling/images/thumb/sphx_glr_pipong_thumb.png

        :ref:`sphx_glr_gallery_event_handling_pipong.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/event_handling/pipong
.. raw:: html

    <div style='clear:both'></div>

.. _front_page_examples:

Front Page
==========



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example reproduces the frontpage histogram example. ">

.. only:: html

    .. figure:: /gallery/frontpage/images/thumb/sphx_glr_histogram_thumb.png

        :ref:`sphx_glr_gallery_frontpage_histogram.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/frontpage/histogram

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example reproduces the frontpage simple plot example. ">

.. only:: html

    .. figure:: /gallery/frontpage/images/thumb/sphx_glr_membrane_thumb.png

        :ref:`sphx_glr_gallery_frontpage_membrane.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/frontpage/membrane

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example reproduces the frontpage contour example. ">

.. only:: html

    .. figure:: /gallery/frontpage/images/thumb/sphx_glr_contour_thumb.png

        :ref:`sphx_glr_gallery_frontpage_contour.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/frontpage/contour

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example reproduces the frontpage 3D example.">

.. only:: html

    .. figure:: /gallery/frontpage/images/thumb/sphx_glr_3D_thumb.png

        :ref:`sphx_glr_gallery_frontpage_3D.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/frontpage/3D
.. raw:: html

    <div style='clear:both'></div>

.. _images_contours_and_fields_examples:

Images, contours and fields
===========================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A simple example of a quiver plot with a quiverkey. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_quiver_simple_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_quiver_simple_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/quiver_simple_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This illustrates placing images directly in the figure, with no axes.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_figimage_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_figimage_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/figimage_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of image that&#x27;s been clipped by a circular patch. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_clip_path_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_image_clip_path.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/image_clip_path

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example displays the difference between interpolation methods for imshow and matshow.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_interpolation_methods_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_interpolation_methods.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/interpolation_methods

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustrate the difference between corner_mask=False and corner_mask=True for masked contour plo...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_corner_mask_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_contour_corner_mask.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/contour_corner_mask

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_griddata_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_griddata_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/griddata_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="pcolormesh uses a QuadMesh, a faster generalization of pcolor, but with some restrictions.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_quadmesh_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_quadmesh_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/quadmesh_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Layer images above one another using alpha blending ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_layer_images_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_layer_images.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/layer_images

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Known problem: the plot autoscaling does not take into account the arrows, so those on the boun...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_quiver_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_quiver_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/quiver_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate use of a log color scale in contourf ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contourf_log_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_contourf_log.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/contourf_log

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Shows how to combine Normalization and Colormap instances to draw &quot;levels&quot; in pcolor, pcolormes...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_pcolormesh_levels_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_pcolormesh_levels.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/pcolormesh_levels

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contourf_hatching_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_contourf_hatching.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/contourf_hatching

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Comparison of griddata and tricontour for an unstructured triangular grid. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tricontour_vs_griddata_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_tricontour_vs_griddata.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/tricontour_vs_griddata

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This illustrates the NonUniformImage class.  It is not available via an Axes method but it is e...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_nonuniform_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_image_nonuniform.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/image_nonuniform

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustrate some of the more advanced things that one can do with contour labels.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_label_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_contour_label_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/contour_label_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Interpolation from triangular grid to quad grid. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_triinterp_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_triinterp_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/triinterp_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_shading_example_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_shading_example.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/shading_example

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A stream plot, or streamline plot, is used to display 2D vector fields. This example shows a fe...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_plot_streamplot_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_plot_streamplot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/plot_streamplot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Make a set of images with a single colormap, norm, and colorbar.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_multi_image_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_multi_image.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/multi_image

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Generating images with pcolor.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_pcolor_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_pcolor_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/pcolor_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="imshow with masked array input and out-of-range colors.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_masked_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_image_masked.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/image_masked

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Many ways to plot images in Matplotlib.">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_image_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/image_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates high-resolution tricontouring on user-defined triangular grids with matplotlib.tri...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tricontour_smooth_user_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_tricontour_smooth_user.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/tricontour_smooth_user

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Test combinations of contouring, filled contouring, and image plotting. For contour labelling, ...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_image_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_contour_image.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/contour_image

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contourf_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_contourf_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/contourf_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates computation of gradient with matplotlib.tri.CubicTriInterpolator. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_trigradient_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_trigradient_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/trigradient_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustrate simple contour plotting, contours on an image with a colorbar for the contours, and ...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_contour_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/contour_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Creating and plotting unstructured triangular grids. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_triplot_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_triplot_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/triplot_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates high-resolution tricontouring of a random set of points ; a matplotlib.tri.TriAnal...">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tricontour_smooth_delaunay_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_tricontour_smooth_delaunay.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/tricontour_smooth_delaunay

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Contour plots of unstructured triangular grids. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tricontour_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_tricontour_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/tricontour_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Pseudocolor plots of unstructured triangular grids. ">

.. only:: html

    .. figure:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tripcolor_demo_thumb.png

        :ref:`sphx_glr_gallery_images_contours_and_fields_tripcolor_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/images_contours_and_fields/tripcolor_demo
.. raw:: html

    <div style='clear:both'></div>

.. _lines_bars_and_markers_example:

Lines, bars and markers
=======================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Also demonstrates how transparency of the markers can be adjusted by giving ``alpha`` a value b...">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_with_legend_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_with_legend.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_with_legend

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="First example showcases the most basic fill plot a user can do with matplotlib.">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_fill_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_fill.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/fill

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_custom_symbol_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_custom_symbol.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_custom_symbol

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_symbol_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_symbol.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_symbol

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A Line object&#x27;s ``set_dashes`` method allows you to specify dashes with a series of on/off leng...">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_line_demo_dash_control_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_line_demo_dash_control.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/line_demo_dash_control

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Generate a scatterplot.">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_profile_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_profile.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_profile

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_masked_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_masked.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_masked

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases a simple horizontal bar chart. ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_barh_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_barh.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/barh

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Make a &quot;broken&quot; horizontal bar plot, i.e., one with gaps ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_broken_barh_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_broken_barh.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/broken_barh

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="How to use categorical variables in Matplotlib.">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_categorical_variables_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_categorical_variables.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/categorical_variables

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An example showing how to plot the coherence of two signals. ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_cohere_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_cohere.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/cohere

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_star_poly_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_star_poly.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_star_poly

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Reference for line-styles included with Matplotlib. ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_line_styles_reference_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_line_styles_reference.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/line_styles_reference

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Reference for marker fill-styles included with Matplotlib. ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_marker_fillstyle_reference_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_marker_fillstyle_reference.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/marker_fillstyle_reference

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of scatter plot with varying marker colors and sizes. ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_demo2_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_demo2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_demo2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_hist_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_hist.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/scatter_hist

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to make a multi-colored line. In this example, the line is colored based...">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_multicolored_line_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_multicolored_line.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/multicolored_line

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This examples showcases different linestyles copying those of Tikz/PGF. ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_linestyles_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_linestyles.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/linestyles

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Reference for filled- and unfilled-marker types included with Matplotlib. ">

.. only:: html

    .. figure:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_marker_reference_thumb.png

        :ref:`sphx_glr_gallery_lines_bars_and_markers_marker_reference.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/lines_bars_and_markers/marker_reference
.. raw:: html

    <div style='clear:both'></div>

.. _misc-examples-index:

Miscellaneous Examples
======================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="There are some instances where you have data in a format that lets you access particular variab...">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_keyword_plotting_thumb.png

        :ref:`sphx_glr_gallery_misc_keyword_plotting.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/keyword_plotting

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_tight_bbox_test_thumb.png

        :ref:`sphx_glr_gallery_misc_tight_bbox_test.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/tight_bbox_test

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can use matplotlib to generate thumbnails from existing images. matplotlib natively support...">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_image_thumbnail_sgskip_thumb.png

        :ref:`sphx_glr_gallery_misc_image_thumbnail_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/image_thumbnail_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A little example that shows how the various indexing into the font tables relate to one another...">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_font_indexing_thumb.png

        :ref:`sphx_glr_gallery_misc_font_indexing.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/font_indexing

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_rasterization_demo_thumb.png

        :ref:`sphx_glr_gallery_misc_rasterization_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/rasterization_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example of displaying your own contour lines and polygons using ContourSet. ">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_contour_manual_thumb.png

        :ref:`sphx_glr_gallery_misc_contour_manual.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/contour_manual

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of using multiprocessing for generating data in one process and plotting in another.">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_multiprocess_sgskip_thumb.png

        :ref:`sphx_glr_gallery_misc_multiprocess_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/multiprocess_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate SVG filtering effects which might be used with mpl.">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_svg_filter_line_thumb.png

        :ref:`sphx_glr_gallery_misc_svg_filter_line.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/svg_filter_line

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_rec_groupby_demo_thumb.png

        :ref:`sphx_glr_gallery_misc_rec_groupby_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/rec_groupby_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is a demo script to show you how to use all the properties of an FT2Font object.  These de...">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_ftface_props_thumb.png

        :ref:`sphx_glr_gallery_misc_ftface_props.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/ftface_props

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate SVG filtering effects which might be used with mpl. The pie chart drawing code is b...">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_svg_filter_pie_thumb.png

        :ref:`sphx_glr_gallery_misc_svg_filter_pie.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/svg_filter_pie

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Here is some example code showing how to define some representative rc properties and construct...">

.. only:: html

    .. figure:: /gallery/misc/images/thumb/sphx_glr_rc_traits_sgskip_thumb.png

        :ref:`sphx_glr_gallery_misc_rc_traits_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/misc/rc_traits_sgskip
.. raw:: html

    <div style='clear:both'></div>

.. _mplot3d_example:

.. _mplot3d-examples-index:

mplot3d toolkit
===============



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="contourf differs from contour in that it creates filled contours, ie. a discrete number of colo...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_contourf3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_contourf3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/contourf3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A very basic demonstration of a wireframe plot. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_wire3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_wire3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/wire3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This modification of the contour3d_demo example uses extend3d=True to extend the curves vertica...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_contour3d_2_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_contour3d_2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/contour3d_2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is like a contour plot in 2D except that the f(x,y)=c curve is plotted on the plane z=c. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_contour3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_contour3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/contour3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A very simple animation of a rotating 3D plot.">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_rotate_axes3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_rotate_axes3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/rotate_axes3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates mplot3d&#x27;s offset text display. As one rotates the 3D figure, the offs...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_offset_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_offset.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/offset

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates plotting a parametric curve in 3D. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_lines3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_lines3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/lines3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates a very basic plot of a 3D surface using a solid color. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_2_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_surface3d_2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/surface3d_2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates that setting rstride or cstride to 0 causes wires to not be generated in the corre...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_wire3d_zero_stride_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_wire3d_zero_stride.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/wire3d_zero_stride

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A basic demo of how to plot 3D bars with and without shading.">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_3d_bars_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_3d_bars.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/3d_bars

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates plotting directional arrows at points on a 3d meshgrid. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_quiver3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_quiver3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/quiver3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates plotting a surface defined in polar coordinates. Uses the reversed version of the ...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_radial_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_surface3d_radial.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/surface3d_radial

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates plotting a 3D surface colored with the coolwarm color map. The surface is made opa...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_surface3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/surface3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates the placement of text annotations on a 3D plot.">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_text3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_text3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/text3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates displaying a 3D surface while also projecting contour &#x27;profiles&#x27; onto the &#x27;walls&#x27; ...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_contour3d_3_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_contour3d_3.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/contour3d_3

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates displaying a 3D surface while also projecting filled contour &#x27;profiles&#x27; onto the &#x27;...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_contourf3d_2_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_contourf3d_2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/contourf3d_2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows a how to plot a 2D and 3D plot on the same figure. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_mixed_subplots_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_mixed_subplots.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/mixed_subplots

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plot a 3D surface with a triangular mesh. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_trisurf3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_trisurf3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/trisurf3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of a basic scatterplot in 3D. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_scatter3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_scatter3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/scatter3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates plotting a 3D surface colored in a checkerboard pattern. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_3_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_surface3d_3.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/surface3d_3

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of a histogram for 2 dimensional data as a bar graph in 3D. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_hist3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_hist3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/hist3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates making a 3D plot which has 2D bar graphs projected onto planes y=0, y=1, etc. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_bars3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_bars3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/bars3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Contour plots of unstructured triangular grids.">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_tricontour3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_tricontour3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/tricontour3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate including 3D plots as subplots. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_subplot3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_subplot3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/subplot3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates using custom hillshading in a 3D surface plot. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_custom_shaded_3d_surface_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_custom_shaded_3d_surface.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/custom_shaded_3d_surface

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A very simple &#x27;animation&#x27; of a 3D plot.  See also rotate_axes3d_demo. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_wire3d_animation_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_wire3d_animation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/wire3d_animation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Filled contour plots of unstructured triangular grids.">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_tricontourf3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_tricontourf3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/tricontourf3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates using ax.plot&#x27;s zdir keyword to plot 2D data on selective axes of a 3D plot. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_2dcollections3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_2dcollections3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/2dcollections3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is an example of plotting Edward Lorenz&#x27;s 1963 `&quot;Deterministic Nonperiodic Flow&quot; &lt;http://j...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_lorenz_attractor_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_lorenz_attractor.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/lorenz_attractor

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate how to create polygons which fill the space under a line graph. In this example pol...">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_polys3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_polys3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/polys3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Two additional examples of plotting surfaces with triangular mesh.">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_trisurf3d_2_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_trisurf3d_2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/trisurf3d_2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate using pathpatch_2d_to_3d to &#x27;draw&#x27; shapes and text on a 3D plot. ">

.. only:: html

    .. figure:: /gallery/mplot3d/images/thumb/sphx_glr_pathpatch3d_thumb.png

        :ref:`sphx_glr_gallery_mplot3d_pathpatch3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/mplot3d/pathpatch3d
.. raw:: html

    <div style='clear:both'></div>

.. _pie_and_polar_charts:

Pie and polar charts
====================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of scatter plot on a polar axis.">

.. only:: html

    .. figure:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_polar_scatter_thumb.png

        :ref:`sphx_glr_gallery_pie_and_polar_charts_polar_scatter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pie_and_polar_charts/polar_scatter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of a basic pie chart plus a few additional features.">

.. only:: html

    .. figure:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_pie_features_thumb.png

        :ref:`sphx_glr_gallery_pie_and_polar_charts_pie_features.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pie_and_polar_charts/pie_features

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of bar plot on a polar axis. ">

.. only:: html

    .. figure:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_polar_bar_thumb.png

        :ref:`sphx_glr_gallery_pie_and_polar_charts_polar_bar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pie_and_polar_charts/polar_bar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The following examples show two ways to build a nested pie chart in Matplotlib.">

.. only:: html

    .. figure:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_nested_pie_thumb.png

        :ref:`sphx_glr_gallery_pie_and_polar_charts_nested_pie.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pie_and_polar_charts/nested_pie
.. raw:: html

    <div style='clear:both'></div>

.. _pylab_examples:

Pylab Examples
==============



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_arrow_simple_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_arrow_simple_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/arrow_simple_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is an example of assigning a log-scale for the x-axis using `semilogx`. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_log_test_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_log_test.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/log_test

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This provides examples of uses of interactive functions, such as ginput,">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_ginput_demo_sgskip_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_ginput_demo_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/ginput_demo_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="print png to standard out">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_print_stdout_sgskip_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_print_stdout_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/print_stdout_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_stem_plot_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_stem_plot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/stem_plot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_simple_plot_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_simple_plot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/simple_plot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can use decreasing axes by flipping the normal order of the axis limits ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_invert_axes_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_invert_axes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/invert_axes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_interp_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_interp_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/interp_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_arctest_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_arctest.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/arctest

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Override the default reporting of coords. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_coords_report_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_coords_report.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/coords_report

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simple matshow() example. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_matshow_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_matshow.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/matshow

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plot the sparsity pattern of arrays ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_spy_demos_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_spy_demos.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/spy_demos

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip=" This example illustrates how to read an image (of an MRI) into a NumPy array, and display it i...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_mri_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_mri_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/mri_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_ellipse_rotated_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_ellipse_rotated.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/ellipse_rotated

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of a line plot on a polar axis. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_polar_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_polar_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/polar_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Working with multiple figure windows and subplots ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_multiple_figs_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_multiple_figs_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/multiple_figs_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This shows 4 possible projections using subplot.  Matplotlib also supports `Basemaps Toolkit &lt;h...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_geo_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_geo_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/geo_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_agg_buffer_to_array_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_agg_buffer_to_array.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/agg_buffer_to_array

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_log_bar_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_log_bar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/log_bar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_step_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_step_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/step_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The new ticker code was designed to explicitly support user customized ticking.  The documentat...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_custom_ticker1_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_custom_ticker1.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/custom_ticker1

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Instead of plotting a legend on each axis, a legend for all the artists on all the sub-axes of ...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_figlegend_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_figlegend_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/figlegend_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_aspect_loglog_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_aspect_loglog.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/aspect_loglog

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_marker_path_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_marker_path.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/marker_path

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_fill_spiral_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_fill_spiral.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/fill_spiral

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_xcorr_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_xcorr_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/xcorr_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can pass a custom Figure constructor to figure if you want to derive from the default Figur...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_custom_figure_class_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_custom_figure_class.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/custom_figure_class

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can share the x or y axis limits for one axis with another by passing an axes instance as a...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_shared_axis_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_shared_axis_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/shared_axis_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plot lines with points masked out.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_masked_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_masked_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/masked_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Some people prefer to write more pythonic, object-oriented code rather than use the pyplot inte...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_pythonic_matplotlib_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_pythonic_matplotlib.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/pythonic_matplotlib

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="I&#x27;m not trying to make a good looking figure here, but just to show some examples of customizin...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_customize_rc_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_customize_rc.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/customize_rc

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_fancytextbox_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_fancytextbox_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/fancytextbox_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example: simple line plots with NaNs inserted. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_nan_test_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_nan_test.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/nan_test

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_ellipse_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_ellipse_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/ellipse_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can control the axis tick and grid properties ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_axes_props_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_axes_props.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/axes_props

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo for the errorevery keyword to show data full accuracy data plots with few errorbars. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_errorbar_subsample_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_errorbar_subsample.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/errorbar_subsample

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_symlog_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_symlog_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/symlog_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_ellipse_collection_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_ellipse_collection.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/ellipse_collection

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_barcode_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_barcode_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/barcode_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_load_converter_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_load_converter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/load_converter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_polar_legend_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_polar_legend.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/polar_legend

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_figure_title_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_figure_title.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/figure_title

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is an example of creating a stacked bar plot with error bars using `~matplotlib.pyplot.bar...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_bar_stacked_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_bar_stacked.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/bar_stacked

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This script demonstrates that font effects specified in your pdftex.map are now supported in pd...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_usetex_fonteffects_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_usetex_fonteffects.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/usetex_fonteffects

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The pyplot interface allows you to use setp and getp to set and get object properties, as well ...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_set_and_get_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_set_and_get.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/set_and_get

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases the functions hlines and vlines. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_vline_hline_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_vline_hline_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/vline_hline_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to set a hyperlinks on various kinds of elements.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_hyperlinks_sgskip_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_hyperlinks_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/hyperlinks_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_movie_demo_sgskip_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_movie_demo_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/movie_demo_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_gradient_bar_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_gradient_bar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/gradient_bar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Use backend agg to access the figure canvas as an RGB string and then convert it to an array an...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_agg_buffer_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_agg_buffer.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/agg_buffer

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_axis_equal_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_axis_equal_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/axis_equal_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_log_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_log_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/log_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Recursively find all objects that match some criteria ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_findobj_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_findobj_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/findobj_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustration of upper and lower limit symbols on errorbars ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_errorbar_limits_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_errorbar_limits.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/errorbar_limits

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to use an rrule instance to make a custom date ticker - here we put a tick mark on eve...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_date_demo_rrule_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_date_demo_rrule.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/date_demo_rrule

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_axhspan_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_axhspan_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/axhspan_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_dashpointlabel_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_dashpointlabel.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/dashpointlabel

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="When plotting daily data, a frequent request is to plot the data ignoring skips, e.g., no extra...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_date_index_formatter_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_date_index_formatter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/date_index_formatter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Compute the cross spectral density of two signals ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_csd_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_csd_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/csd_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An example of how to interact with the plotting canvas by connecting to move and click events ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_coords_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_coords_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/coords_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_specgram_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_specgram_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/specgram_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Produce custom labelling for a colorbar.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_colorbar_tick_labelling_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_colorbar_tick_labelling_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/colorbar_tick_labelling_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate how to use major and minor tickers.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_major_minor_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_major_minor_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/major_minor_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_axes_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_axes_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/axes_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This file generates an old version of the Matplotlib logo. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_logo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_logo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/logo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="How to create stackplots with Matplotlib.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_stackplot_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_stackplot_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/stackplot_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_date_demo_convert_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_date_demo_convert.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/date_demo_convert

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="sometimes it is nice to have ticklabels centered.  Matplotlib currently associates a label with...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_centered_ticklabels_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_centered_ticklabels.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/centered_ticklabels

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The default drawing order for axes is patches, lines, text.  This order is determined by the zo...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_zorder_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_zorder_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/zorder_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Hatching (pattern filled polygons) is supported currently in the PS, PDF, SVG and Agg backends ...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_hatch_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_hatch_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/hatch_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The plots show different spectrum representations of a sine signal with additive noise. A (freq...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_spectrum_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_spectrum_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/spectrum_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use the agg backend directly to create images, which may be of use to...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_webapp_demo_sgskip_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_webapp_demo_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/webapp_demo_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_multiline_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_multiline.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/multiline

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This illustrates the use of transforms.offset_copy to make a transform that positions a drawing...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_transoffset_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_transoffset.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/transoffset

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_plotfile_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_plotfile_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/plotfile_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Make a pie charts of varying size - see http://matplotlib.org/api/pyplot_api.html#matplotlib.py...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_pie_demo2_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_pie_demo2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/pie_demo2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plot two curves, then use EventCollections to mark the locations of the x and y data points on ...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_eventcollection_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_eventcollection_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/eventcollection_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_fancyarrow_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_fancyarrow_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/fancyarrow_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_demo_text_rotation_mode_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_demo_text_rotation_mode.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/demo_text_rotation_mode

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_fill_betweenx_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_fill_betweenx_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/fill_betweenx_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_patheffect_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_patheffect_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/patheffect_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_multiple_yaxis_with_spines_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_multiple_yaxis_with_spines.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/multiple_yaxis_with_spines

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is a demo of creating a pdf file with several pages, as well as adding metadata and annota...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_multipage_pdf_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_multipage_pdf.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/multipage_pdf

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of table function to display a table within a plot. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_table_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_table_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/table_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An eventplot showing sequences of events with various line properties. The plot is shown in bot...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_eventplot_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_eventplot_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/eventplot_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This provides examples of uses of interactive functions, such as ginput, waitforbuttonpress and...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_ginput_manual_clabel_sgskip_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_ginput_manual_clabel_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/ginput_manual_clabel_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of wind barb plots ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_barb_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_barb_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/barb_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_system_monitor_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_system_monitor.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/system_monitor

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use matplotlib to provide a data cursor.  It uses matplotlib to draw ...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_cursor_demo_sgskip_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_cursor_demo_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/cursor_demo_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_anscombe_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_anscombe.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/anscombe

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Displays a set of subplots with an MRI image, its intensity histogram and some EEG traces. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_mri_with_eeg_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_mri_with_eeg.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/mri_with_eeg

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_demo_bboximage_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_demo_bboximage.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/demo_bboximage

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use `fill_between` to color between lines based on user-defined logic...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_fill_between_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_fill_between_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/fill_between_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Broken axis example, where the y-axis will have a portion cut out. ">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_broken_axis_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_broken_axis.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/broken_axis

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the various options for showing a marker at a subset of data points u...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_markevery_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_markevery_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/markevery_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_demo_tight_layout_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_demo_tight_layout.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/demo_tight_layout

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plotting lines with Matplotlib.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_line_collection_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_line_collection.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/line_collection

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_spine_placement_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_spine_placement_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/spine_placement_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_demo_annotation_box_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_demo_annotation_box.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/demo_annotation_box

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_axes_zoom_effect_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_axes_zoom_effect.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/axes_zoom_effect

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plotting Power Spectral Density (PSD) in Matplotlib.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_psd_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_psd_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/psd_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to draw, and manipulate shapes given vertices and nodes using the `Patch...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_dolphin_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_dolphin.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/dolphin

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_anchored_artists_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_anchored_artists.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/anchored_artists

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_demo_ribbon_box_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_demo_ribbon_box.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/demo_ribbon_box

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_demo_text_path_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_demo_text_path.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/demo_text_path

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Creating a colormap from a list of colors can be done with the `from_list` method of `LinearSeg...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_custom_cmap_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_custom_cmap.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/custom_cmap

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plotting fancy boxes with Matplotlib.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_fancybox_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_fancybox_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/fancybox_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to create the 17 segment model for the left ventricle recommended...">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_leftventricle_bulleye_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_leftventricle_bulleye.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/leftventricle_bulleye

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Arrow drawing example for the new fancy_arrow facilities.">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_arrow_demo_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_arrow_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/arrow_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pylab_examples/images/thumb/sphx_glr_demo_agg_filter_thumb.png

        :ref:`sphx_glr_gallery_pylab_examples_demo_agg_filter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pylab_examples/demo_agg_filter
.. raw:: html

    <div style='clear:both'></div>

.. _pyplots_examples:

Pyplot Examples
===============



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_simple_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_simple.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_simple

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_formatstr_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_formatstr.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_formatstr

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_three_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_three.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_three

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_fig_x_thumb.png

        :ref:`sphx_glr_gallery_pyplots_fig_x.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/fig_x

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_whats_new_98_4_legend_thumb.png

        :ref:`sphx_glr_gallery_pyplots_whats_new_98_4_legend.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/whats_new_98_4_legend

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_two_subplots_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_two_subplots.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_two_subplots

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_annotate_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_annotate.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_annotate

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_annotation_basic_thumb.png

        :ref:`sphx_glr_gallery_pyplots_annotation_basic.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/annotation_basic

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_whats_new_99_mplot3d_thumb.png

        :ref:`sphx_glr_gallery_pyplots_whats_new_99_mplot3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/whats_new_99_mplot3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_mathtext_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_mathtext.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_mathtext

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_whats_new_98_4_fill_between_thumb.png

        :ref:`sphx_glr_gallery_pyplots_whats_new_98_4_fill_between.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/whats_new_98_4_fill_between

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_text_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_text.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_text

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_dollar_ticks_thumb.png

        :ref:`sphx_glr_gallery_pyplots_dollar_ticks.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/dollar_ticks

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_fig_axes_labels_simple_thumb.png

        :ref:`sphx_glr_gallery_pyplots_fig_axes_labels_simple.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/fig_axes_labels_simple

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_fig_axes_customize_simple_thumb.png

        :ref:`sphx_glr_gallery_pyplots_fig_axes_customize_simple.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/fig_axes_customize_simple

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_annotation_polar_thumb.png

        :ref:`sphx_glr_gallery_pyplots_annotation_polar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/annotation_polar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plotting text of many different kinds. ">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_text_commands_thumb.png

        :ref:`sphx_glr_gallery_pyplots_text_commands.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/text_commands

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_align_ylabels_thumb.png

        :ref:`sphx_glr_gallery_pyplots_align_ylabels.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/align_ylabels

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_whats_new_1_subplot3d_thumb.png

        :ref:`sphx_glr_gallery_pyplots_whats_new_1_subplot3d.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/whats_new_1_subplot3d

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_whats_new_99_axes_grid_thumb.png

        :ref:`sphx_glr_gallery_pyplots_whats_new_99_axes_grid.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/whats_new_99_axes_grid

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_auto_subplots_adjust_thumb.png

        :ref:`sphx_glr_gallery_pyplots_auto_subplots_adjust.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/auto_subplots_adjust

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_annotate_transform_thumb.png

        :ref:`sphx_glr_gallery_pyplots_annotate_transform.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/annotate_transform

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_whats_new_99_spines_thumb.png

        :ref:`sphx_glr_gallery_pyplots_whats_new_99_spines.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/whats_new_99_spines

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_compound_path_demo_thumb.png

        :ref:`sphx_glr_gallery_pyplots_compound_path_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/compound_path_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_scales_thumb.png

        :ref:`sphx_glr_gallery_pyplots_pyplot_scales.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/pyplot_scales

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example boxplot code ">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_boxplot_demo_thumb.png

        :ref:`sphx_glr_gallery_pyplots_boxplot_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/boxplot_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_whats_new_98_4_fancy_thumb.png

        :ref:`sphx_glr_gallery_pyplots_whats_new_98_4_fancy.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/whats_new_98_4_fancy

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/pyplots/images/thumb/sphx_glr_text_layout_thumb.png

        :ref:`sphx_glr_gallery_pyplots_text_layout.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/pyplots/text_layout
.. raw:: html

    <div style='clear:both'></div>

.. _recipes:

Our Favorite Recipes
====================

Here is a collection of short tutorials, examples and code snippets
that illustrate some of the useful idioms and tricks to make snazzier
figures and overcome some matplotlib warts.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="It&#x27;s common to make two or more plots which share an axis, e.g., two subplots with time as a co...">

.. only:: html

    .. figure:: /gallery/recipes/images/thumb/sphx_glr_share_axis_lims_views_thumb.png

        :ref:`sphx_glr_gallery_recipes_share_axis_lims_views.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/recipes/share_axis_lims_views

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Sometimes you know what your data looks like before you plot it, and may know for instance that...">

.. only:: html

    .. figure:: /gallery/recipes/images/thumb/sphx_glr_transparent_legends_thumb.png

        :ref:`sphx_glr_gallery_recipes_transparent_legends.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/recipes/transparent_legends

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In early versions of matplotlib, if you wanted to use the pythonic API and create a figure inst...">

.. only:: html

    .. figure:: /gallery/recipes/images/thumb/sphx_glr_create_subplots_thumb.png

        :ref:`sphx_glr_gallery_recipes_create_subplots.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/recipes/create_subplots

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="When decorating axes with text boxes, two useful tricks are to place the text in axes coordinat...">

.. only:: html

    .. figure:: /gallery/recipes/images/thumb/sphx_glr_placing_text_boxes_thumb.png

        :ref:`sphx_glr_gallery_recipes_placing_text_boxes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/recipes/placing_text_boxes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Matplotlib allows you to natively plots python datetime instances, and for the most part does a...">

.. only:: html

    .. figure:: /gallery/recipes/images/thumb/sphx_glr_common_date_problems_thumb.png

        :ref:`sphx_glr_gallery_recipes_common_date_problems.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/recipes/common_date_problems

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The :meth:`~matplotlib.axes.Axes.fill_between` function generates a shaded region between a min...">

.. only:: html

    .. figure:: /gallery/recipes/images/thumb/sphx_glr_fill_between_alpha_thumb.png

        :ref:`sphx_glr_gallery_recipes_fill_between_alpha.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/recipes/fill_between_alpha
.. raw:: html

    <div style='clear:both'></div>

.. _scales_examples:

Scales in Matplotlib
====================

These examples cover how different scales are handled in Matplotlib.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Illustrate the scale transformations applied to axes, e.g. log, symlog, logit. ">

.. only:: html

    .. figure:: /gallery/scales/images/thumb/sphx_glr_scales_thumb.png

        :ref:`sphx_glr_gallery_scales_scales.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/scales/scales
.. raw:: html

    <div style='clear:both'></div>

.. _shapes_and_collections_examples:


Shapes and collections
======================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases a simple scatter plot. ">

.. only:: html

    .. figure:: /gallery/shapes_and_collections/images/thumb/sphx_glr_scatter_thumb.png

        :ref:`sphx_glr_gallery_shapes_and_collections_scatter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/shapes_and_collections/scatter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to create `Path`\s and `PathPatch` objects through Matplotlib&#x27;s API. ">

.. only:: html

    .. figure:: /gallery/shapes_and_collections/images/thumb/sphx_glr_path_patch_thumb.png

        :ref:`sphx_glr_gallery_shapes_and_collections_path_patch.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/shapes_and_collections/path_patch

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example displays several of matplotlib&#x27;s graphics primitives (artists) drawn using matplot...">

.. only:: html

    .. figure:: /gallery/shapes_and_collections/images/thumb/sphx_glr_artist_reference_thumb.png

        :ref:`sphx_glr_gallery_shapes_and_collections_artist_reference.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/shapes_and_collections/artist_reference
.. raw:: html

    <div style='clear:both'></div>

.. _showcase_examples:

Showcase
========



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Although this is a simple example, it demonstrates some important tweaks:">

.. only:: html

    .. figure:: /gallery/showcase/images/thumb/sphx_glr_integral_thumb.png

        :ref:`sphx_glr_gallery_showcase_integral.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/showcase/integral

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Shows how to create an xkcd-like plot. ">

.. only:: html

    .. figure:: /gallery/showcase/images/thumb/sphx_glr_xkcd_thumb.png

        :ref:`sphx_glr_gallery_showcase_xkcd.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/showcase/xkcd

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The Mandelbrot set rendering can be improved by using a normalized recount associated with a po...">

.. only:: html

    .. figure:: /gallery/showcase/images/thumb/sphx_glr_mandelbrot_thumb.png

        :ref:`sphx_glr_gallery_showcase_mandelbrot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/showcase/mandelbrot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This figure shows the name of several matplotlib elements composing a figure ">

.. only:: html

    .. figure:: /gallery/showcase/images/thumb/sphx_glr_anatomy_thumb.png

        :ref:`sphx_glr_gallery_showcase_anatomy.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/showcase/anatomy

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to create the Firefox logo with path and patches. ">

.. only:: html

    .. figure:: /gallery/showcase/images/thumb/sphx_glr_firefox_thumb.png

        :ref:`sphx_glr_gallery_showcase_firefox.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/showcase/firefox

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A graph of multiple time series which demonstrates extensive custom styling of plot frame, tick...">

.. only:: html

    .. figure:: /gallery/showcase/images/thumb/sphx_glr_bachelors_degrees_by_gender_thumb.png

        :ref:`sphx_glr_gallery_showcase_bachelors_degrees_by_gender.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/showcase/bachelors_degrees_by_gender
.. raw:: html

    <div style='clear:both'></div>

.. _specialty_plots_examples:

Specialty Plots
===============



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Hinton diagrams are useful for visualizing the values of a 2D array (e.g. a weight matrix): Pos...">

.. only:: html

    .. figure:: /gallery/specialty_plots/images/thumb/sphx_glr_hinton_demo_thumb.png

        :ref:`sphx_glr_gallery_specialty_plots_hinton_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/specialty_plots/hinton_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates a few common tricks with shaded plots. ">

.. only:: html

    .. figure:: /gallery/specialty_plots/images/thumb/sphx_glr_advanced_hillshading_thumb.png

        :ref:`sphx_glr_gallery_specialty_plots_advanced_hillshading.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/specialty_plots/advanced_hillshading

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates the visual effect of varying blend mode and vertical exaggeration on &quot;hillshaded&quot; ...">

.. only:: html

    .. figure:: /gallery/specialty_plots/images/thumb/sphx_glr_topographic_hillshading_thumb.png

        :ref:`sphx_glr_gallery_specialty_plots_topographic_hillshading.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/specialty_plots/topographic_hillshading
.. raw:: html

    <div style='clear:both'></div>

.. _statistics_examples:

Statistics
==========



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This exhibits the most basic use of the error bar method. In this case, constant values are pro...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_errorbar_thumb.png

        :ref:`sphx_glr_gallery_statistics_errorbar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/errorbar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="* Histogram with step curve that has a color fill. * Histogram with custom and unequal bin widt...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_histogram_histtypes_thumb.png

        :ref:`sphx_glr_gallery_statistics_histogram_histtypes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/histogram_histtypes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Errors can be specified as a constant value (as shown in `errorbar_demo.py`). However, this exa...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_errorbar_features_thumb.png

        :ref:`sphx_glr_gallery_statistics_errorbar_features.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/errorbar_features

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In addition to the basic histogram, this demo shows a few optional features:">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_histogram_features_thumb.png

        :ref:`sphx_glr_gallery_statistics_histogram_features.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/histogram_features

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plot histogram with multiple sample sets and demonstrate:">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_histogram_multihist_thumb.png

        :ref:`sphx_glr_gallery_statistics_histogram_multihist.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/histogram_multihist

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Note that although violin plots are closely related to Tukey&#x27;s (1977) box plots, they add usefu...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_boxplot_vs_violin_thumb.png

        :ref:`sphx_glr_gallery_statistics_boxplot_vs_violin.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/boxplot_vs_violin

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This shows how to plot a cumulative, normalized histogram as a step function in order to visual...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_histogram_cumulative_thumb.png

        :ref:`sphx_glr_gallery_statistics_histogram_cumulative.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/histogram_cumulative

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This plot illustrates how to create two types of box plots (rectangular and notched), and how t...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_boxplot_color_thumb.png

        :ref:`sphx_glr_gallery_statistics_boxplot_color.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/boxplot_color

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example plots horizontal histograms of different samples along a categorical x-axis. Addit...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_multiple_histograms_side_by_side_thumb.png

        :ref:`sphx_glr_gallery_statistics_multiple_histograms_side_by_side.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/multiple_histograms_side_by_side

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we snazz up a pretty standard error bar plot by adding a rectangle patch defin...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_errorbars_and_boxes_thumb.png

        :ref:`sphx_glr_gallery_statistics_errorbars_and_boxes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/errorbars_and_boxes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In matplotlib, errors bars can have &quot;limits&quot;. Applying limits to the error bars essentially mak...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_errorbar_limits_thumb.png

        :ref:`sphx_glr_gallery_statistics_errorbar_limits.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/errorbar_limits

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Violin plots are similar to histograms and box plots in that they show an abstract representati...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_violinplot_thumb.png

        :ref:`sphx_glr_gallery_statistics_violinplot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/violinplot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates how to plot histograms with matplotlib. ">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_hist_thumb.png

        :ref:`sphx_glr_gallery_statistics_hist.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/hist

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plotting hexbins with Matplotlib.">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_hexbin_demo_thumb.png

        :ref:`sphx_glr_gallery_statistics_hexbin_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/hexbin_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to fully customize violin plots. The first plot shows the default...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_customized_violin_thumb.png

        :ref:`sphx_glr_gallery_statistics_customized_violin.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/customized_violin

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to use the various kwargs to fully customize box plots. The first...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_boxplot_thumb.png

        :ref:`sphx_glr_gallery_statistics_boxplot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/boxplot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to pass pre-computed box plot statistics to the box plot drawer. ...">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_bxp_thumb.png

        :ref:`sphx_glr_gallery_statistics_bxp.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/bxp

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Bar charts of many shapes and sizes with Matplotlib.">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_barchart_demo_thumb.png

        :ref:`sphx_glr_gallery_statistics_barchart_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/barchart_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Visualizing boxplots with matplotlib.">

.. only:: html

    .. figure:: /gallery/statistics/images/thumb/sphx_glr_boxplot_demo_thumb.png

        :ref:`sphx_glr_gallery_statistics_boxplot_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/statistics/boxplot_demo
.. raw:: html

    <div style='clear:both'></div>

.. _style_sheet_examples:

Style sheets
============



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the &quot;dark_background&quot; style, which uses white for elements that are t...">

.. only:: html

    .. figure:: /gallery/style_sheets/images/thumb/sphx_glr_dark_background_thumb.png

        :ref:`sphx_glr_gallery_style_sheets_dark_background.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/style_sheets/dark_background

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the style used in the Bayesian Methods for Hackers [1]_ online book.">

.. only:: html

    .. figure:: /gallery/style_sheets/images/thumb/sphx_glr_bmh_thumb.png

        :ref:`sphx_glr_gallery_style_sheets_bmh.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/style_sheets/bmh

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This shows an example of the &quot;fivethirtyeight&quot; styling, which tries to replicate the styles fro...">

.. only:: html

    .. figure:: /gallery/style_sheets/images/thumb/sphx_glr_fivethirtyeight_thumb.png

        :ref:`sphx_glr_gallery_style_sheets_fivethirtyeight.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/style_sheets/fivethirtyeight

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the &quot;grayscale&quot; style sheet, which changes all colors that are define...">

.. only:: html

    .. figure:: /gallery/style_sheets/images/thumb/sphx_glr_grayscale_thumb.png

        :ref:`sphx_glr_gallery_style_sheets_grayscale.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/style_sheets/grayscale

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the &quot;ggplot&quot; style, which adjusts the style to emulate ggplot_ (a pop...">

.. only:: html

    .. figure:: /gallery/style_sheets/images/thumb/sphx_glr_ggplot_thumb.png

        :ref:`sphx_glr_gallery_style_sheets_ggplot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/style_sheets/ggplot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This script demonstrates the different available style sheets on a common set of example plots:...">

.. only:: html

    .. figure:: /gallery/style_sheets/images/thumb/sphx_glr_style_sheets_reference_thumb.png

        :ref:`sphx_glr_gallery_style_sheets_style_sheets_reference.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/style_sheets/style_sheets_reference
.. raw:: html

    <div style='clear:both'></div>

.. _subplots_axes_and_figures_examples:

Subplots, axes and figures
==========================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplot_toolbar_thumb.png

        :ref:`sphx_glr_gallery_subplots_axes_and_figures_subplot_toolbar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/subplots_axes_and_figures/subplot_toolbar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simple demo with multiple subplots. ">

.. only:: html

    .. figure:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplot_thumb.png

        :ref:`sphx_glr_gallery_subplots_axes_and_figures_subplot.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/subplots_axes_and_figures/subplot

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simple demo with multiple subplots. ">

.. only:: html

    .. figure:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplot_demo_thumb.png

        :ref:`sphx_glr_gallery_subplots_axes_and_figures_subplot_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/subplots_axes_and_figures/subplot_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplots_adjust_thumb.png

        :ref:`sphx_glr_gallery_subplots_axes_and_figures_subplots_adjust.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/subplots_axes_and_figures/subplots_adjust

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="To create plots that share a common axis (visually) you can set the hspace between the subplots...">

.. only:: html

    .. figure:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_ganged_plots_thumb.png

        :ref:`sphx_glr_gallery_subplots_axes_and_figures_ganged_plots.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/subplots_axes_and_figures/ganged_plots

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of how to display two scales on the left and right y axis.">

.. only:: html

    .. figure:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_fahrenheit_celsius_scales_thumb.png

        :ref:`sphx_glr_gallery_subplots_axes_and_figures_fahrenheit_celsius_scales.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/subplots_axes_and_figures/fahrenheit_celsius_scales

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Examples illustrating the use of plt.subplots().">

.. only:: html

    .. figure:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplots_demo_thumb.png

        :ref:`sphx_glr_gallery_subplots_axes_and_figures_subplots_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/subplots_axes_and_figures/subplots_demo
.. raw:: html

    <div style='clear:both'></div>

.. _text_labels_and_annotations:

Text, labels and annotations
============================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="matplotlib can display plot titles centered, flush with the left side of a set of axes, and flu...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_titles_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_titles_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/titles_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to share parameters across many text objects and labels by creating a di...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_fontdict_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_text_fontdict.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/text_fontdict

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Use matplotlib&#x27;s internal LaTeX parser and layout engine.  For true latex rendering, see the te...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/mathtext_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can use TeX to render all of your matplotlib text if the rc parameter text.usetex is set.  ...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_tex_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_tex_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/tex_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Matplotlib can wrap text automatically, but if it&#x27;s too long, the text will be displayed slight...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_autowrap_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_autowrap.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/autowrap

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Matplotlib supports accented characters via TeX mathtext or unicode.">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_accented_text_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_accented_text.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/accented_text

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Text objects in matplotlib are normally rotated with respect to the screen coordinate system (i...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_rotation_relative_to_line_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_text_rotation_relative_to_line.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/text_rotation_relative_to_line

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The way Matplotlib does text layout by default is counter-intuitive to some, so this example is...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_rotation_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_text_rotation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/text_rotation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The example shows how to string together several text objects.">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_rainbow_text_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_rainbow_text.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/rainbow_text

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_stix_fonts_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_stix_fonts_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/stix_fonts_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Matplotlib has support for FreeType fonts.  Here&#x27;s a little example using the &#x27;table&#x27; command t...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_table_ttf_sgskip_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_font_table_ttf_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/font_table_ttf_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_usetex_baseline_test_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_usetex_baseline_test.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/usetex_baseline_test

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Same as fonts_demo using kwargs.  If you prefer a more pythonic, OO style of coding, see exampl...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fonts_demo_kw_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_fonts_demo_kw.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/fonts_demo_kw

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can precisely layout text in data or axes (0,1) coordinates.  This example shows you some o...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_alignment_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_text_alignment.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/text_alignment

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_usetex_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_usetex_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/usetex_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to set custom font properties.">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fonts_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_fonts_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/fonts_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Selected features of Matplotlib&#x27;s math rendering engine. ">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_examples_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_examples.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/mathtext_examples

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plotting legends in Matplotlib.">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_legend_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_legend_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/legend_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The following examples show how it is possible to annotate plots in matplotlib. This includes h...">

.. only:: html

    .. figure:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_annotation_demo_thumb.png

        :ref:`sphx_glr_gallery_text_labels_and_annotations_annotation_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/text_labels_and_annotations/annotation_demo
.. raw:: html

    <div style='clear:both'></div>

.. _ticks_and_spines_examples:

Ticks and spines
================



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of custom tick-labels with user-defined rotation. ">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_ticklabels_rotation_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_ticklabels_rotation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/ticklabels_rotation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Using ax.set_xticks causes the tick labels to be set on the currently chosen ticks. However, yo...">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_tick_labels_from_values_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_tick_labels_from_values.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/tick_labels_from_values

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Setting the behavior of tick auto-placement.">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_auto_ticks_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_auto_ticks.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/auto_ticks

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of spines offset from the axes (a.k.a. &quot;dropped spines&quot;). ">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_spines_dropped_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_spines_dropped.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/spines_dropped

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demo of spines using custom bounds to limit the extent of the spine. ">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_spines_bounds_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_spines_bounds.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/spines_bounds

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This demo compares:     - normal axes, with spines on all four sides;     - an axes with spines...">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_spines_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_spines.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/spines

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The example shows use of ScalarFormatter with different settings.">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_scalarformatter_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_scalarformatter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/scalarformatter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show the different tick locators. ">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_tick-locators_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_tick-locators.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/tick-locators

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show the different tick formatters. ">

.. only:: html

    .. figure:: /gallery/ticks_and_spines/images/thumb/sphx_glr_tick-formatters_thumb.png

        :ref:`sphx_glr_gallery_ticks_and_spines_tick-formatters.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/ticks_and_spines/tick-formatters
.. raw:: html

    <div style='clear:both'></div>

.. _units_examples:

.. _units-examples-index:

Units in Matplotlib
===================

These examples cover the many representations of units
in Matplotlib.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Plot with radians from the basic_units mockup example package.">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_radian_demo_thumb.png

        :ref:`sphx_glr_gallery_units_radian_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/radian_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The example illustrates the ability to override default x and y units (ax1) to inches and centi...">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_units_sample_thumb.png

        :ref:`sphx_glr_gallery_units_units_sample.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/units_sample

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The example below shows support for unit conversions over masked arrays.">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_units_scatter_thumb.png

        :ref:`sphx_glr_gallery_units_units_scatter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/units_scatter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A plot using a variety of centimetre and inch conversions. This example shows how default unit ...">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_bar_demo2_thumb.png

        :ref:`sphx_glr_gallery_units_bar_demo2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/bar_demo2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The example illustrates how to create text and arrow annotations using a centimeter-scale plot.">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_annotate_with_units_thumb.png

        :ref:`sphx_glr_gallery_units_annotate_with_units.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/annotate_with_units

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is the same example as :doc:`the barchart demo&lt;../api/barchart&gt;` in centimeters.">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_bar_unit_demo_thumb.png

        :ref:`sphx_glr_gallery_units_bar_unit_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/bar_unit_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Test unit support with each of the Matplotlib primitive artist types.">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_artist_tests_thumb.png

        :ref:`sphx_glr_gallery_units_artist_tests.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/artist_tests

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Compare the ellipse generated with arcs versus a polygonal approximation">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_ellipse_with_units_thumb.png

        :ref:`sphx_glr_gallery_units_ellipse_with_units.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/ellipse_with_units

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A mockup &quot;Foo&quot; units class which supports conversion and different tick formatting depending on...">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_evans_test_thumb.png

        :ref:`sphx_glr_gallery_units_evans_test.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/evans_test

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/units/images/thumb/sphx_glr_basic_units_thumb.png

        :ref:`sphx_glr_gallery_units_basic_units.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/units/basic_units
.. raw:: html

    <div style='clear:both'></div>

.. _user_interfaces:

Embedding matplotlib in graphical user interfaces
=================================================

You can embed matplotlib directly into a user interface application by
following the embedding_in_SOMEGUI.py examples here.  Currently
matplotlib supports wxpython, pygtk, tkinter and pyqt4/5.

When embedding matplotlib in a GUI, you must use the matplotlib API
directly rather than the pylab/pyplot proceedural interface, so take a
look at the examples/api directory for some example code working with
the API.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_lineprops_dialog_gtk_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_lineprops_dialog_gtk_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/lineprops_dialog_gtk_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="demonstrate adding a FigureCanvasGTK3Agg widget to a Gtk.ScrolledWindow using GTK3 accessed via...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk3_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk3_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_gtk3_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to add a matplotlib FigureCanvasGTK or FigureCanvasGTKAgg widget to a gtk.Window ">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_gtk_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="demonstrate NavigationToolbar with GTK3 accessed via pygobject ">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk3_panzoom_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk3_panzoom_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_gtk3_panzoom_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_tk2_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_tk2_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_tk2_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is an example that shows you how to work directly with the agg figure canvas to create a f...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_histogram_demo_canvasagg_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_histogram_demo_canvasagg_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/histogram_demo_canvasagg_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_mpl_with_glade_316_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_mpl_with_glade_316_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/mpl_with_glade_316_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An example of how to use pylab to manage your figure windows, but modify the GUI by accessing t...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_pylab_with_gtk_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_pylab_with_gtk_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/pylab_with_gtk_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="show how to add a matplotlib FigureCanvasGTK or FigureCanvasGTKAgg widget and a toolbar to a gt...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk2_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk2_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_gtk2_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_tk_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_tk_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_tk_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Matplotlib requires wxPython 2.8+ set the wxPython version in lib\site-packages\wx.pth file or ...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx5_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx5_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_wx5_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_qt4_wtoolbar_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_qt4_wtoolbar_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_qt4_wtoolbar_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Embedding plots in a Tk Canvas. ">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_tk_canvas_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_tk_canvas_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_tk_canvas_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An example of how to use wx or wxagg in an application with the new toolbar - comment out the s...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx2_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx2_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_wx2_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example to draw a cursor and report the data coords in wx ">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_wxcursor_demo_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_wxcursor_demo_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/wxcursor_demo_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example of embedding matplotlib in an application and interacting with a treeview to store data...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_gtk_spreadsheet_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_gtk_spreadsheet_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/gtk_spreadsheet_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to create a tooltip that will show up when hovering over a matplotlib pa...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_svg_tooltip_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_svg_tooltip_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/svg_tooltip_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to:">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_toolmanager_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_toolmanager_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/toolmanager_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_mpl_with_glade_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_mpl_with_glade_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/mpl_with_glade_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An example of how to use wx or wxagg in an application with a custom toolbar ">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx4_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx4_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_wx4_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate how to create an interactive histogram, in which bars are hidden or shown by clicki...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_svg_histogram_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_svg_histogram_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/svg_histogram_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates how to convert mathtext to a wx.Bitmap for display in various controls on wxPython...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_mathtext_wx_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_mathtext_wx_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/mathtext_wx_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simple Qt4 application embedding Matplotlib canvases">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_qt4_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_qt4_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_qt4_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simple Qt5 application embedding Matplotlib canvases">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_qt5_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_qt5_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_qt5_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Copyright (C) 2003-2004 Andrew Straw, Jeremy O&#x27;Donoghue and others">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx3_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx3_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_in_wx3_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to embed matplotlib WebAgg interactive plotting in your own web a...">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_webagg_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_embedding_webagg_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/embedding_webagg_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/user_interfaces/images/thumb/sphx_glr_fourier_demo_wx_sgskip_thumb.png

        :ref:`sphx_glr_gallery_user_interfaces_fourier_demo_wx_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/user_interfaces/fourier_demo_wx_sgskip
.. raw:: html

    <div style='clear:both'></div>

.. _userdemo:

Userdemo
========



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_axisline3_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_axisline3.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_axisline3

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_anchored_box01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_anchored_box01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/anchored_box01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_simple01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_simple01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_simple01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_simple02_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_simple02.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_simple02

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_anchored_box03_thumb.png

        :ref:`sphx_glr_gallery_userdemo_anchored_box03.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/anchored_box03

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_legend02_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_legend02.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_legend02

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_anchored_box02_thumb.png

        :ref:`sphx_glr_gallery_userdemo_anchored_box02.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/anchored_box02

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_axis_direction01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_axis_direction01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_axis_direction01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_simple03_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_simple03.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_simple03

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_simple_coord01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_simple_coord01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_simple_coord01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_axis_direction_demo_step01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_axis_direction_demo_step01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/axis_direction_demo_step01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_legend01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_legend01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_legend01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_simple_coord02_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_simple_coord02.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_simple_coord02

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_axisartist1_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_axisartist1.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_axisartist1

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec05_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_gridspec05.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_gridspec05

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_axis_direction03_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_axis_direction03.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_axis_direction03

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_gridspec01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_gridspec01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_axisline2_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_axisline2.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_axisline2

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec02_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_gridspec02.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_gridspec02

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_pgf_texsystem_sgskip_thumb.png

        :ref:`sphx_glr_gallery_userdemo_pgf_texsystem_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/pgf_texsystem_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_simple_coord03_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_simple_coord03.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_simple_coord03

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_pgf_fonts_sgskip_thumb.png

        :ref:`sphx_glr_gallery_userdemo_pgf_fonts_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/pgf_fonts_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of using norm to map colormaps onto data in non-linear ways. ">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_colormap_normalizations_power_thumb.png

        :ref:`sphx_glr_gallery_userdemo_colormap_normalizations_power.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/colormap_normalizations_power

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_connect_simple01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_connect_simple01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/connect_simple01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec03_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_gridspec03.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_gridspec03

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_text_arrow_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_text_arrow.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_text_arrow

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_ticklabel_alignment_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_ticklabel_alignment.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_ticklabel_alignment

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of using norm to map colormaps onto data in non-linear ways. ">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_colormap_normalizations_lognorm_thumb.png

        :ref:`sphx_glr_gallery_userdemo_colormap_normalizations_lognorm.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/colormap_normalizations_lognorm

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec04_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_gridspec04.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_gridspec04

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_axis_direction_demo_step02_thumb.png

        :ref:`sphx_glr_gallery_userdemo_axis_direction_demo_step02.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/axis_direction_demo_step02

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of using norm to map colormaps onto data in non-linear ways. ">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_colormap_normalizations_symlognorm_thumb.png

        :ref:`sphx_glr_gallery_userdemo_colormap_normalizations_symlognorm.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/colormap_normalizations_symlognorm

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_simple04_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_simple04.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_simple04

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_axisline_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_axisline.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_axisline

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_pgf_preamble_sgskip_thumb.png

        :ref:`sphx_glr_gallery_userdemo_pgf_preamble_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/pgf_preamble_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_ticklabel_direction_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_ticklabel_direction.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_ticklabel_direction

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_anchored_box04_thumb.png

        :ref:`sphx_glr_gallery_userdemo_anchored_box04.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/anchored_box04

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_axis_direction_demo_step03_thumb.png

        :ref:`sphx_glr_gallery_userdemo_axis_direction_demo_step03.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/axis_direction_demo_step03

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec06_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_gridspec06.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_gridspec06

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_custom_boxstyle01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_custom_boxstyle01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/custom_boxstyle01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of using norm to map colormaps onto data in non-linear ways. ">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_colormap_normalizations_bounds_thumb.png

        :ref:`sphx_glr_gallery_userdemo_colormap_normalizations_bounds.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/colormap_normalizations_bounds

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of using norm to map colormaps onto data in non-linear ways. ">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_colormap_normalizations_custom_thumb.png

        :ref:`sphx_glr_gallery_userdemo_colormap_normalizations_custom.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/colormap_normalizations_custom

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_axis_direction_demo_step04_thumb.png

        :ref:`sphx_glr_gallery_userdemo_axis_direction_demo_step04.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/axis_direction_demo_step04

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_parasite_axes_sgskip_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_parasite_axes_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_parasite_axes_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_custom_boxstyle02_thumb.png

        :ref:`sphx_glr_gallery_userdemo_custom_boxstyle02.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/custom_boxstyle02

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_annotate01_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_annotate01.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_annotate01

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_annotate_explain_thumb.png

        :ref:`sphx_glr_gallery_userdemo_annotate_explain.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/annotate_explain

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_demo_axis_direction_thumb.png

        :ref:`sphx_glr_gallery_userdemo_demo_axis_direction.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/demo_axis_direction

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_simple_axis_pad_thumb.png

        :ref:`sphx_glr_gallery_userdemo_simple_axis_pad.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/simple_axis_pad

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_connectionstyle_demo_thumb.png

        :ref:`sphx_glr_gallery_userdemo_connectionstyle_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/connectionstyle_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstration of using norm to map colormaps onto data in non-linear ways. ">

.. only:: html

    .. figure:: /gallery/userdemo/images/thumb/sphx_glr_colormap_normalizations_thumb.png

        :ref:`sphx_glr_gallery_userdemo_colormap_normalizations.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/userdemo/colormap_normalizations
.. raw:: html

    <div style='clear:both'></div>

Widgets
=======

Examples of how to write primitive, but GUI agnostic, widgets in
matplotlib



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_multicursor_thumb.png

        :ref:`sphx_glr_gallery_widgets_multicursor.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/multicursor

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_cursor_thumb.png

        :ref:`sphx_glr_gallery_widgets_cursor.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/cursor

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_textbox_thumb.png

        :ref:`sphx_glr_gallery_widgets_textbox.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/textbox

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_check_buttons_thumb.png

        :ref:`sphx_glr_gallery_widgets_check_buttons.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/check_buttons

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_buttons_thumb.png

        :ref:`sphx_glr_gallery_widgets_buttons.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/buttons

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The SpanSelector is a mouse widget to select a xmin/xmax range and plot the detail view of the ...">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_span_selector_thumb.png

        :ref:`sphx_glr_gallery_widgets_span_selector.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/span_selector

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_radio_buttons_thumb.png

        :ref:`sphx_glr_gallery_widgets_radio_buttons.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/radio_buttons

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_slider_demo_thumb.png

        :ref:`sphx_glr_gallery_widgets_slider_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/slider_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Do a mouseclick somewhere, move the mouse to some destination, release the button.  This class ...">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_rectangle_selector_thumb.png

        :ref:`sphx_glr_gallery_widgets_rectangle_selector.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/rectangle_selector

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_lasso_selector_demo_sgskip_thumb.png

        :ref:`sphx_glr_gallery_widgets_lasso_selector_demo_sgskip.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/lasso_selector_demo_sgskip

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Shows how one can select indices of a polygon interactively.">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_polygon_selector_demo_thumb.png

        :ref:`sphx_glr_gallery_widgets_polygon_selector_demo.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/polygon_selector_demo

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="">

.. only:: html

    .. figure:: /gallery/widgets/images/thumb/sphx_glr_menu_thumb.png

        :ref:`sphx_glr_gallery_widgets_menu.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/widgets/menu
.. raw:: html

    <div style='clear:both'></div>



.. container:: sphx-glr-footer


  .. container:: sphx-glr-download

    :download:`Download all examples in Python source code: gallery_python.zip <//home/elliott/code/matplotlib/doc/gallery/gallery_python.zip>`



  .. container:: sphx-glr-download

    :download:`Download all examples in Jupyter notebooks: gallery_jupyter.zip <//home/elliott/code/matplotlib/doc/gallery/gallery_jupyter.zip>`

.. rst-class:: sphx-glr-signature

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