Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CIGALE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cigale
CIGALE
Commits
ae31073e
Commit
ae31073e
authored
Jul 06, 2014
by
BURGARELLA Denis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add redshift in pcigale-plots sed
parent
f27ff5bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
pcigale_plots/__init__.py
pcigale_plots/__init__.py
+5
-2
No files found.
pcigale_plots/__init__.py
View file @
ae31073e
...
...
@@ -2,8 +2,9 @@
# Copyright (C) 2013 Centre de données Astrophysiques de Marseille
# Copyright (C) 2013-2014 Yannick Roehlly
# Copyright (C) 2013 Institute of Astronomy
# Copyright (C) 2014 Laboratoire d'Astrophysique de Marseille
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
# Author: Yannick Roehlly
& Médéric Boquien
# Author: Yannick Roehlly
, Médéric Boquien & Denis Burgarella
__version__
=
"0.1-alpha"
...
...
@@ -123,9 +124,11 @@ def _sed_worker(obs, mod, filters):
ax
.
set_xlabel
(
"Wavelength [nm]"
)
ax
.
set_ylabel
(
"Flux [mJy]"
)
ax
.
legend
(
loc
=
'lower right'
)
figure
.
suptitle
(
"Best model for {}.
Reduced $\chi^2$={}
"
.
format
(
figure
.
suptitle
(
"Best model for {}.
z = {}. Reduced $\chi^2$={}.
"
.
format
(
obs
[
'id'
],
np
.
round
(
obs
[
'redshift'
],
decimals
=
2
),
np
.
round
(
mod
[
'reduced_chi_square'
],
decimals
=
2
)))
figure
.
savefig
(
OUT_DIR
+
"{}_best_model.pdf"
.
format
(
obs
[
'id'
]))
plt
.
close
(
figure
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment