.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "cli/examples/gwpy-plot-spectrogram-norm.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_cli_examples_gwpy-plot-spectrogram-norm.py: ###################### Normalised spectrogram ###################### This example shows a normalised :ref:`spectrogram ` of the strain data from LIGO-Hanford around the time of GW150914. .. code-block:: shell gwpy-plot spectrogram \ --gwosc \ --ifo L1 \ --start 1264315518 \ --duration 1024 \ --norm \ --cmap Spectral_r \ --imin .25 \ --imax 4 \ --interactive .. GENERATED FROM PYTHON SOURCE LINES 25-26 The same command can be executed directly in Python as: .. GENERATED FROM PYTHON SOURCE LINES 26-39 .. code-block:: Python from gwpy.cli.gwpy_plot import main main([ 'spectrogram', '--gwosc', '--ifo', 'L1', '--start', '1264315518', '--duration', '1024', '--norm', '--cmap', 'Spectral_r', '--imin', '.25', '--imax', '4', '--interactive', ]) .. image-sg:: /cli/examples/images/sphx_glr_gwpy-plot-spectrogram-norm_001.png :alt: Spectrogram: L1, fftlength=1.0, overlap=0.5 :srcset: /cli/examples/images/sphx_glr_gwpy-plot-spectrogram-norm_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Program run time: 3.8 .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 3.845 seconds) .. _sphx_glr_download_cli_examples_gwpy-plot-spectrogram-norm.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: gwpy-plot-spectrogram-norm.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: gwpy-plot-spectrogram-norm.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: gwpy-plot-spectrogram-norm.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_