-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from e-koch/expand_docs
Expand docs
- Loading branch information
Showing
9 changed files
with
523 additions
and
36 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 @@ | ||
@import url("bootstrap-astropy.css"); | ||
|
||
|
||
div.topbar a.brand { | ||
background: transparent url("radiosnakes_nostruts2.svg") no-repeat 10px 4px; | ||
background-image: url("radiosnakes_nostruts2.svg"), none; | ||
background-size: 32px 32px; | ||
|
||
} |
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
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,20 @@ | ||
.. _plotting: | ||
|
||
Add a beam to a matplotlib plot | ||
=============================== | ||
|
||
To show the beam on an image in matplotlib, use `~radio_beam.Beam.ellipse_to_plot`:: | ||
|
||
>>> from radio_beam import Beam | ||
>>> import astropy.units as u | ||
>>> import matplotlib.pyplot as plt | ||
>>> my_beam = Beam(5*u.arcsec, 3*u.arcsec, 30*u.deg) | ||
>>> ycen_pix, xcen_pix = 15, 15 | ||
>>> pixscale = 1 * u.arcsec | ||
>>> ellipse_artist = my_beam.ellipse_to_plot(xcen_pix, ycen_pix, pixscale) | ||
>>> ax = plt.imshow(image) # doctest: +SKIP | ||
>>> _ = ax.add_artist(ellipse_artist) # doctest: +SKIP | ||
|
||
The three inputs you need for adding to an arbitrary image are the x and y coordinates | ||
to center the beam at in the image, and the pixel scale of the image as defined in the WCS | ||
information. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -23,6 +23,7 @@ install_requires = | |
test = | ||
pytest-astropy | ||
pytest-cov | ||
matplotlib | ||
docs = | ||
sphinx-astropy | ||
matplotlib | ||
|