Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
ae31073e
Commit
ae31073e
authored
Jul 06, 2014
by
BURGARELLA Denis
Browse files
add redshift in pcigale-plots sed
parent
f27ff5bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale_plots/__init__.py
View file @
ae31073e
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
# Copyright (C) 2013 Centre de données Astrophysiques de Marseille
# Copyright (C) 2013 Centre de données Astrophysiques de Marseille
# Copyright (C) 2013-2014 Yannick Roehlly
# Copyright (C) 2013-2014 Yannick Roehlly
# Copyright (C) 2013 Institute of Astronomy
# 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
# 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"
__version__
=
"0.1-alpha"
...
@@ -123,9 +124,11 @@ def _sed_worker(obs, mod, filters):
...
@@ -123,9 +124,11 @@ def _sed_worker(obs, mod, filters):
ax
.
set_xlabel
(
"Wavelength [nm]"
)
ax
.
set_xlabel
(
"Wavelength [nm]"
)
ax
.
set_ylabel
(
"Flux [mJy]"
)
ax
.
set_ylabel
(
"Flux [mJy]"
)
ax
.
legend
(
loc
=
'lower right'
)
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'
],
obs
[
'id'
],
np
.
round
(
obs
[
'redshift'
],
decimals
=
2
),
np
.
round
(
mod
[
'reduced_chi_square'
],
decimals
=
2
)))
np
.
round
(
mod
[
'reduced_chi_square'
],
decimals
=
2
)))
figure
.
savefig
(
OUT_DIR
+
"{}_best_model.pdf"
.
format
(
obs
[
'id'
]))
figure
.
savefig
(
OUT_DIR
+
"{}_best_model.pdf"
.
format
(
obs
[
'id'
]))
plt
.
close
(
figure
)
plt
.
close
(
figure
)
else
:
else
:
...
...
Write
Preview
Supports
Markdown
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