Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
powspec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CONCERTO
powspec
Commits
aa94a498
Commit
aa94a498
authored
4 years ago
by
alexandre beelen
Browse files
Options
Downloads
Patches
Plain Diff
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
4 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/basic_plotting.py
+4
-5
4 additions, 5 deletions
examples/basic_plotting.py
setup.cfg
+1
-0
1 addition, 0 deletions
setup.cfg
with
5 additions
and
5 deletions
examples/basic_plotting.py
+
4
−
5
View file @
aa94a498
...
@@ -5,7 +5,7 @@ Basic Usage of powspec
...
@@ -5,7 +5,7 @@ Basic Usage of powspec
"""
"""
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
# sphinx_gallery_thumbnail_path = '_static/demo.png'
import
astropy.units
as
u
import
astropy.units
as
u
from
astropy.visualization
import
quantity_support
from
astropy.visualization
import
quantity_support
...
@@ -15,7 +15,7 @@ from powspec.utils.generator import gen_pkfield
...
@@ -15,7 +15,7 @@ from powspec.utils.generator import gen_pkfield
quantity_support
()
quantity_support
()
#
#########################################################################
#
%%
# Create fake images
# Create fake images
# ------------------
# ------------------
#
#
...
@@ -31,7 +31,7 @@ for alpha in alphas:
...
@@ -31,7 +31,7 @@ for alpha in alphas:
gen_pkfield
(
npix
=
1024
,
alpha
=
alpha
,
fknee
=
0.1
/
u
.
arcmin
,
res
=
res
)
*
u
.
MJy
gen_pkfield
(
npix
=
1024
,
alpha
=
alpha
,
fknee
=
0.1
/
u
.
arcmin
,
res
=
res
)
*
u
.
MJy
)
)
#
#########################################################################
#
%%
# Compute P(k)
# Compute P(k)
# ------------
# ------------
#
#
...
@@ -46,10 +46,9 @@ for image in images:
...
@@ -46,10 +46,9 @@ for image in images:
k_mid
=
np
.
mean
(
u
.
Quantity
([
k
[
1
:],
k
[:
-
1
]]),
axis
=
0
)
k_mid
=
np
.
mean
(
u
.
Quantity
([
k
[
1
:],
k
[:
-
1
]]),
axis
=
0
)
#
#########################################################################
#
%%
# Plots
# Plots
# -----
# -----
#
fig
=
plt
.
figure
()
fig
=
plt
.
figure
()
gs
=
fig
.
add_gridspec
(
ncols
=
2
,
nrows
=
len
(
alphas
))
gs
=
fig
.
add_gridspec
(
ncols
=
2
,
nrows
=
len
(
alphas
))
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
0
View file @
aa94a498
...
@@ -29,6 +29,7 @@ test =
...
@@ -29,6 +29,7 @@ test =
pytest-astropy
pytest-astropy
docs
=
docs
=
sphinx-astropy
sphinx-astropy
matplotlib
[options.package_data]
[options.package_data]
powspec
=
data/*
powspec
=
data/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment