-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Simple plotting functions | ||
========================= | ||
|
||
The ``hera_pspec.plot`` module contains functions for making simple plots of delay power spectra. | ||
|
||
A simple example | ||
|
||
.. code-block:: python | ||
# Load or generate a UVPSpec object containing delay power spectra | ||
uvp = ... | ||
# Set which baseline-pairs should be included in the plot | ||
blpairs = list(uvp.blpair_array) # This includes all blpairs! | ||
# Plot the delay spectrum, averaged over all blpairs and times | ||
# (for the spectral window with index=0, and polarization 'xx') | ||
ax = hp.plot.delay_spectrum(uvp, [blpairs,], spw=0, pol='xx', | ||
average_blpairs=True, average_times=True, | ||
delay=False) | ||
# Setting delay=False plots the power spectrum in cosmological units | ||
For a more extensive worked example, see `this example Jupyter notebook <https://github.com/HERA-Team/hera_pspec/blob/master/examples/Plotting_examples.ipynb>`_. | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
Plot module | ||
----------- | ||
|
||
The only plotting function currently available in the `hera_pspec.plot` module is `delay_spectrum()`. | ||
|
||
.. automodule:: hera_pspec.plot | ||
:members: | ||
|