.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/plots/Simplified_Image_Plot.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_plots_Simplified_Image_Plot.py: =============== Simple Plotting =============== Demonstrate the use of MetPy's simplified plotting interface. Plots a sample satellite image file. .. GENERATED FROM PYTHON SOURCE LINES 13-33 .. image-sg:: /examples/plots/images/sphx_glr_Simplified_Image_Plot_001.png :alt: IR :srcset: /examples/plots/images/sphx_glr_Simplified_Image_Plot_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Adjusting bad PDB size from 0 to 512. | .. code-block:: Python import xarray as xr from metpy.cbook import get_test_data from metpy.io import GiniFile from metpy.plots import ImagePlot, MapPanel, PanelContainer data = xr.open_dataset(GiniFile(get_test_data('NHEM-MULTICOMP_1km_IR_20151208_2100.gini'))) img = ImagePlot() img.data = data img.field = 'IR' img.colormap = 'Greys_r' panel = MapPanel() panel.plots = [img] pc = PanelContainer() pc.panels = [panel] pc.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.538 seconds) .. _sphx_glr_download_examples_plots_Simplified_Image_Plot.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Simplified_Image_Plot.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Simplified_Image_Plot.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_