.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/map_plots/map_scatter_basic.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_examples_map_plots_map_scatter_basic.py: Map scatter (basic) =================== Unlabeled points (solid color) over the CONUS domain. .. GENERATED FROM PYTHON SOURCE LINES 7-31 .. image-sg:: /examples/map_plots/images/sphx_glr_map_scatter_basic_001.png :alt: Map scatter (basic) :srcset: /examples/map_plots/images/sphx_glr_map_scatter_basic_001.png :class: sphx-glr-single-img .. code-block:: Python import numpy as np from emcpy.plots.map_plots import MapScatter from emcpy.plots.create_plots import CreatePlot, CreateFigure rng = np.random.default_rng(0) n = 400 lat = rng.uniform(25, 49, n) lon = rng.uniform(-125, -67, n) p = CreatePlot(projection="plcarr", domain="conus") ms = MapScatter(lat, lon) # data=None -> solid color points ms.color = "tab:blue" ms.markersize = 15 p.plot_layers = [ms] p.add_map_features(["states", "coastline", "borders"]) p.add_title("Map scatter (basic)") p.add_grid() fig = CreateFigure(1, 1, figsize=(9, 5.2)) fig.plot_list = [p] fig.create_figure() fig.tight_layout() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.144 seconds) .. _sphx_glr_download_examples_map_plots_map_scatter_basic.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: map_scatter_basic.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: map_scatter_basic.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: map_scatter_basic.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_