.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/map_plots/map_filled_contour_lambert_conus.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_filled_contour_lambert_conus.py: Filled contours (Lambert CONUS) =============================== Lambert Conformal over CONUS. Centers are forwarded from the domain, so no extra setup needed. .. GENERATED FROM PYTHON SOURCE LINES 8-33 .. image-sg:: /examples/map_plots/images/sphx_glr_map_filled_contour_lambert_conus_001.png :alt: Filled contours (Lambert CONUS) :srcset: /examples/map_plots/images/sphx_glr_map_filled_contour_lambert_conus_001.png :class: sphx-glr-single-img .. code-block:: Python import numpy as np from emcpy.plots.map_plots import MapFilledContour from emcpy.plots.create_plots import CreatePlot, CreateFigure lon = np.linspace(-130, -65, 261) lat = np.linspace(24, 50, 131) LON, LAT = np.meshgrid(lon, lat) Z = np.exp(-((LON + 95) ** 2 + (LAT - 37) ** 2) / (2 * 12 ** 2)) * np.cos(0.25 * (LON + LAT)) p = CreatePlot(projection="lambert", domain="conus") cf = MapFilledContour(LAT, LON, Z) cf.cmap = "RdBu_r" cf.levels = np.linspace(-0.8, 0.8, 17) p.plot_layers = [cf] p.add_map_features(["states", "coastline", "borders"]) p.add_colorbar(label="Z") p.add_title("Filled contours (Lambert CONUS)") fig = CreateFigure(1, 1, figsize=(9.2, 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 2.302 seconds) .. _sphx_glr_download_examples_map_plots_map_filled_contour_lambert_conus.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: map_filled_contour_lambert_conus.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: map_filled_contour_lambert_conus.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: map_filled_contour_lambert_conus.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_