Skip to content
Snippets Groups Projects
Commit aa94a498 authored by alexandre beelen's avatar alexandre beelen
Browse files

fix(doc) Adding matplotlib as dependancy and minor changes

parent 205f9a35
No related branches found
No related tags found
No related merge requests found
Pipeline #2478 failed
......@@ -5,7 +5,7 @@ Basic Usage of powspec
"""
import matplotlib.pyplot as plt
# sphinx_gallery_thumbnail_path = '_static/demo.png'
import astropy.units as u
from astropy.visualization import quantity_support
......@@ -15,7 +15,7 @@ from powspec.utils.generator import gen_pkfield
quantity_support()
##########################################################################
# %%
# Create fake images
# ------------------
#
......@@ -31,7 +31,7 @@ for alpha in alphas:
gen_pkfield(npix=1024, alpha=alpha, fknee=0.1 / u.arcmin, res=res) * u.MJy
)
##########################################################################
# %%
# Compute P(k)
# ------------
#
......@@ -46,10 +46,9 @@ for image in images:
k_mid = np.mean(u.Quantity([k[1:], k[:-1]]), axis=0)
##########################################################################
# %%
# Plots
# -----
#
fig = plt.figure()
gs = fig.add_gridspec(ncols=2, nrows=len(alphas))
......
......@@ -29,6 +29,7 @@ test =
pytest-astropy
docs =
sphinx-astropy
matplotlib
[options.package_data]
powspec = data/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment