.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plotting/_contour.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plotting__contour.py: ==================== 6.11 contour plot ==================== .. GENERATED FROM PYTHON SOURCE LINES 7-14 .. code-block:: default from easy_mpl import contour import numpy as np from easy_mpl.utils import version_info version_info() .. rst-class:: sphx-glr-script-out .. code-block:: none {'easy_mpl': '0.21.4', 'matplotlib': '3.8.4', 'numpy': '1.26.4', 'pandas': '1.5.3', 'scipy': '1.13.1'} .. GENERATED FROM PYTHON SOURCE LINES 15-21 .. code-block:: default _x = np.random.uniform(-2, 2, 200) _y = np.random.uniform(-2, 2, 200) _z = _x * np.exp(-_x**2 - _y**2) contour(_x, _y, _z, fill_between=True, show_points=True) .. image-sg:: /auto_examples/plotting/images/sphx_glr__contour_001.png :alt: contour :srcset: /auto_examples/plotting/images/sphx_glr__contour_001.png, /auto_examples/plotting/images/sphx_glr__contour_001_2_0x.png 2.0x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/python-seekho/envs/dev/lib/python3.9/site-packages/easy_mpl/_contour.py:115: UserWarning: The following kwargs were not used by contour: 'linewidth' CS = ax.tricontour(x, y, z, **_kws) .. GENERATED FROM PYTHON SOURCE LINES 22-23 show contour labels .. GENERATED FROM PYTHON SOURCE LINES 23-25 .. code-block:: default contour(_x, _y, _z, label_contours=True, show_points=True) .. image-sg:: /auto_examples/plotting/images/sphx_glr__contour_002.png :alt: contour :srcset: /auto_examples/plotting/images/sphx_glr__contour_002.png, /auto_examples/plotting/images/sphx_glr__contour_002_2_0x.png 2.0x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/python-seekho/envs/dev/lib/python3.9/site-packages/easy_mpl/_contour.py:115: UserWarning: The following kwargs were not used by contour: 'linewidth' CS = ax.tricontour(x, y, z, **_kws) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.709 seconds) .. _sphx_glr_download_auto_examples_plotting__contour.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/AtrCheema/python-seekho/master?urlpath=lab/tree/notebooks/auto_examples/plotting/_contour.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: _contour.py <_contour.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: _contour.ipynb <_contour.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_