# obspy.signal.spectral_estimation.PPSD.plot

`PPSD.``plot`(filename=None, show_coverage=True, show_histogram=True, show_percentiles=False, percentiles=[0, 25, 50, 75, 100], show_noise_models=True, grid=True, show=True, max_percentage=None, period_lim=(0.01, 179), show_mode=False, show_mean=False, cmap=<matplotlib.colors.LinearSegmentedColormap object at 0x4310a34c>, cumulative=False, cumulative_number_of_colors=20, xaxis_frequency=False)

  Plot the 2D histogram of the current PPSD. If a filename is specified the plot is saved to this file, otherwise a plot window is shown.

  Note

  For example plots see the Obspy Gallery.

  Parameters: | filename (str, optional) Name of output file show_coverage (bool, optional) Enable/disable second axes with representation of data coverage time intervals. show_percentiles (bool, optional) Enable/disable plotting of approximated percentiles. These are calculated from the binned histogram and are not the exact percentiles. show_histogram (bool, optional) Enable/disable plotting of histogram. This can be set `False` e.g. to make a plot with only percentiles plotted. Defaults to `True`. percentiles (list of ints) percentiles to show if plotting of percentiles is selected. show_noise_models (bool, optional) Enable/disable plotting of noise models. grid (bool, optional) Enable/disable grid in histogram plot. show (bool, optional) Enable/disable immediately showing the plot. If `show=False`, then the matplotlib figure handle is returned. max_percentage (float, optional) Maximum percentage to adjust the colormap. The default is 30% unless `cumulative=True`, in which case this value is ignored. period_lim (tuple of 2 floats, optional) Period limits to show in histogram. When setting `xaxis_frequency=True`, this is expected to be frequency range in Hz. show_mode (bool, optional) Enable/disable plotting of mode psd values. show_mean (bool, optional) Enable/disable plotting of mean psd values. cmap (`matplotlib.colors.Colormap`) Colormap to use for the plot. To use the color map like in PQLX, [McNamara2004] use `obspy.imaging.cm.pqlx`. cumulative (bool) Can be set to True to show a cumulative representation of the histogram, i.e. showing color coded for each frequency/amplitude bin at what percentage in time the value is not exceeded by the data (similar to the percentile option but continuously and color coded over the whole area). max_percentage is ignored when this option is specified. cumulative_number_of_colors (int) Number of discrete color shades to use, None for a continuous colormap. xaxis_frequency (bool) If set to True, the x axis will be frequency in Hertz as opposed to the default of period in seconds.

### Thank you!

We would like to thank our contributors, whose efforts make this software what it is. These people have helped by writing code and documentation, and by testing. They have created and maintained this product, its associated libraries and applications, our build tools and our web sites.

#### Contributors

- Ackerley, Nick
- Allgeyer, Sebastien
- Ammon, Charles J.
- Antunes, Emanuel
- Arnarsson, Ólafur St.
- Bank, Markus
- Barsch, Robert
- Behr, Yannik
- Bernardi, Fabrizio
- Bernauer, Felix
- Bes de Berc, Maxime
- Beyreuther, Moritz
- Boltz, Shawn
- Bonaimé, Sébastien
- Carothers, Lloyd
- Chamberlain, Calum
- Chambers, Derrick
- Chen, Zhao
- Clark, Adam
- Danecek, Peter
- Egdorf, Sven
- Engels, Fabian
- Ermert, Laura
- Eulenfeld, Tom

- Fabbri, Tommaso
- Falco, Nicholas
- Fee, Jeremy
- Grellier, Clément
- Grunberg, Marc
- Hammer, Conny
- Heimann, Sebastian
- Heiniger, Lukas
- Hope, Gaute
- Igel, Heiner
- Inza, Adolfo
- Isken, Marius
- Ketchum, David
- Koymans, Mathijs
- Kremers, Simon
- Kress, Victor
- Krieger, Lars
- Krischer, Lion
- Kula, Damian
- Käufl, Paul
- Köhler, Andreas
- Lecocq, Thomas
- Leeman, John
- Legovini, Paride

- Lesage, Philippe
- Li, Yulin
- Lomax, Anthony
- Lopes, Rui L.
- MacCarthy, Jonathan
- Maggi, Alessia
- Martin, Henri
- Medlin, Andrew
- Megies, Tobias
- Meschede, Matthias
- Michelini, Alberto
- Miller, Nathaniel C.
- Morgenstern, Bernhard
- Nof, Ran Novitsky
- Panning, Mark P.
- Parker, Tom
- Pestourie, Romain
- Rapagnani, Giovanni
- Reyes, Celso
- Ringler, Adam
- Rothenhäusler, Nicolas
- Russo, Emiliano
- Sales de Andrade, Elliott

- Satriano, Claudio
- Saul, Joachim
- Scheingraber, Chris
- Schneider, Simon
- Sippl, Christian
- Snoke, Arthur
- Stange, Stefan
- Stähler, Simon C.
- Sullivan, Benjamin
- Tian, Dongdong
- Trabant, Chad
- Trani, Luca
- Uieda, Leonardo
- Walker, Andrew
- Walther, Marcus
- Wassermann, Joachim
- Williams, Mark C.
- Winkelman, Andrew
- Zaccarelli, Riccardo
- Zad, Seyed Kasra Hosseini
- Zhu, Lijun
- van Driel, Martin
- van Wijk, Kasper

#### Funds

ObsPy was partially funded by the

- German Science Foundation (DFG) via grant DFG IG 16/9-1
- German Ministry for Education and Research (BMBF), GEOTECHNOLOGIEN grant 03G0646H.
- NERA project (Network of European Research Infrastructures for Earthquake Risk Assessment and Mitigation) under the European Community's Seventh Framework Programme (FP7/2007-2013) grant agreement n° 262330
- Leibniz Institute for Applied Geophysics (LIAG)
- VERCE EU-FP7 project (no. 283543)