.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "api/gallery/plate_tectonics/plot_05_wegener_continental_drift.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 or to run this example in your browser via JupyterLite. .. rst-class:: sphx-glr-example-title .. _sphx_glr_api_gallery_plate_tectonics_plot_05_wegener_continental_drift.py: Wegener's continental drift (1912) ================================== Alfred Wegener argued from matching coastlines, fossils and rocks that South America and Africa were once joined. At a few centimetres a year, the separation since the opening of the South Atlantic is thousands of kilometres. The rate here is a representative value, not a reconstruction. .. GENERATED FROM PYTHON SOURCE LINES 10-28 .. image-sg:: /api/gallery/plate_tectonics/images/sphx_glr_plot_05_wegener_continental_drift_001.png :alt: 3 cm/year opens an ocean :srcset: /api/gallery/plate_tectonics/images/sphx_glr_plot_05_wegener_continental_drift_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import numpy as np from earthsciencekit.plate_tectonics import plate_displacement from earthsciencekit.units import convert speed = convert(3.0, "cm/year", "m/s") time = convert(np.linspace(0, 120e6, 121), "year", "s") separation = plate_displacement(speed, time) assert np.isclose(separation[-1], 3.6e6) fig, ax = plt.subplots() ax.plot(convert(time, "s", "year") / 1e6, separation / 1e3) ax.set(xlabel="time since break-up [million years]", ylabel="South America-Africa separation [km]") ax.set_title("3 cm/year opens an ocean") plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.076 seconds) .. _sphx_glr_download_api_gallery_plate_tectonics_plot_05_wegener_continental_drift.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: lite-badge .. image:: images/jupyterlite_badge_logo.svg :target: ../../../lite/lab/index.html?path=api/gallery/plate_tectonics/plot_05_wegener_continental_drift.ipynb :alt: Launch JupyterLite :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_05_wegener_continental_drift.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_05_wegener_continental_drift.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_05_wegener_continental_drift.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_