.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_scatter_map.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_auto_examples_plot_scatter_map.py: ========================================= Plot the 2D ScatterData ========================================= This example shows how to plot the 2D ScatterData object. I use a LGM d13C data from Peterson et al. 2014 (https://agupubs.onlinelibrary.wiley.com/doi/full/10.1002/2013PA002552) as an example. .. GENERATED FROM PYTHON SOURCE LINES 8-27 .. image-sg:: /auto_examples/images/sphx_glr_plot_scatter_map_001.png :alt: plot scatter map :srcset: /auto_examples/images/sphx_glr_plot_scatter_map_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Downloading LGM_d13c_CLEAN.txt to /home/docs/.cgeniepy/LGM_d13c_CLEAN.txt... Download complete. /home/docs/checkouts/readthedocs.org/user_builds/cgeniepy/envs/stable/lib/python3.12/site-packages/cgeniepy/plot.py:632: UserWarning: kind is not used for map plotting warnings.warn("kind is not used for map plotting") | .. code-block:: Python from cgeniepy.table import ScatterData from cgeniepy.plot import CommunityPalette import matplotlib.pyplot as plt from cgeniepy.utils import download_zenodo_file record_id = "13786013" filename = "LGM_d13c_CLEAN.txt" local_file_path = download_zenodo_file(record_id, filename) proxy_d13C = ScatterData(local_file_path, delimiter="\t", header=None) proxy_d13C.data.columns = ["Longitude", "Latitude", "Depth", "d13C","Event"] proxy_d13C.set_index(["Latitude", "Longitude"]) cmap = CommunityPalette("scientific_vik").colormap proxy_d13C.plot(var='d13C', edgecolor='k', cmap=cmap) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 2.132 seconds) .. _sphx_glr_download_auto_examples_plot_scatter_map.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_scatter_map.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_scatter_map.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_scatter_map.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_