:orphan:

.. _examples:

========
Examples
========



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="You can use .Axes.set_extent() to display a region of interest on a plot. Combined with add_landmarks() to highlight regional landmarks.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot-set-extent_thumb.png
    :alt:

  :doc:`/examples/plot-set-extent`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plot a small area with landmarks</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip=".Convention.make_artist() method will create an appropriate Artist to plot a variable. The artist can be customised by passing kwargs to make_artist(). The make_artist() documentation for each convention will describe what artists are created for what kinds of variables.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot-with-clim_thumb.png
    :alt:

  :doc:`/examples/plot-with-clim`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plot with specified data limits</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Multiple plots in one figure">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot-two-subplots_thumb.png
    :alt:

  :doc:`/examples/plot-two-subplots`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Multiple plots in one figure</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Transect and cross section plots can be animated using .TransectArtist.set_data_array() to update the data.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot-animated-transect_thumb.gif
    :alt:

  :doc:`/examples/plot-animated-transect`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Animated transect</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Animated plots are possible with emsarray by using matplotlib.animation.FuncAnimation and calling .GridArtist.set_data_array() each frame. A FuncAnimation will call a function every frame where you can update the plot. Each artist returned by .Convention.make_artist() has a set_data_array() method which can be used to update the data in the plot. In combination this makes animations in emsarray about as straight forward as making a static plot:">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot-animation_thumb.gif
    :alt:

  :doc:`/examples/plot-animation`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Animated plot</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="K&#x27;gari transect plot">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot-kgari-transect_thumb.png
    :alt:

  :doc:`/examples/plot-kgari-transect`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">K'gari transect plot</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="To plot vector quantities such as currents we can use a quiver plot in matplotlib. In the GBR4 tutorial dataset the u and v variables contain the x and y components of the vector for each cell in the dataset.">

.. only:: html

  .. image:: /examples/images/thumb/sphx_glr_plot-vector-methods_thumb.png
    :alt:

  :doc:`/examples/plot-vector-methods`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Vector plotting methods</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /examples/plot-set-extent
   /examples/plot-with-clim
   /examples/plot-two-subplots
   /examples/plot-animated-transect
   /examples/plot-animation
   /examples/plot-kgari-transect
   /examples/plot-vector-methods


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download all examples in Python source code: examples_python.zip </examples/examples_python.zip>`

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download all examples in Jupyter notebooks: examples_jupyter.zip </examples/examples_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
