.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated/gallery/visualisation/plotting_ripple_contour.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_generated_gallery_visualisation_plotting_ripple_contour.py: =========================== Plotting a RippleContour =========================== How to plot a `RippleContour` using inbuilt plotting methods. .. GENERATED FROM PYTHON SOURCE LINES 8-18 .. code-block:: Python from matplotlib import pyplot as plt from ripplemapper.analyse import add_boundary_contours from ripplemapper.classes import RippleImage from ripplemapper.data.example import example_data ripple_image = RippleImage(example_data[0]) add_boundary_contours(ripple_image, sigma=2) .. GENERATED FROM PYTHON SOURCE LINES 19-20 Plot with `RippleContour.plot`. .. GENERATED FROM PYTHON SOURCE LINES 21-24 .. code-block:: Python ripple_image.contours[1].plot() plt.show() .. image-sg:: /generated/gallery/visualisation/images/sphx_glr_plotting_ripple_contour_001.png :alt: /home/docs/checkouts/readthedocs.org/user_builds/ripplemapper/envs/latest/lib/python3.12/site-packages/ripplemapper/data/example/1_00052_sample.tif - Contour: Lower Boundary :srcset: /generated/gallery/visualisation/images/sphx_glr_plotting_ripple_contour_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.061 seconds) .. _sphx_glr_download_generated_gallery_visualisation_plotting_ripple_contour.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plotting_ripple_contour.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plotting_ripple_contour.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plotting_ripple_contour.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_