Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
cigale
CIGALE
Commits
89401d95
Commit
89401d95
authored
Jun 13, 2019
by
Médéric Boquien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the observed flux markers from square to circles to improve the readability
parent
4ca7b8b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
CHANGELOG.md
CHANGELOG.md
+1
-0
pcigale_plots/plot_types/sed.py
pcigale_plots/plot_types/sed.py
+5
-5
No files found.
CHANGELOG.md
View file @
89401d95
...
...
@@ -11,6 +11,7 @@
-
The lines linking the different bands in the residual SED plot have been eliminated to improve the readability. (Médéric Boquien)
-
Some lines have been made slightly thicker in SED plots so the different components are more visible. (Médéric Boquien)
-
The colours in the SED plots have been tweaked for aesthetic reasons. (Médéric Boquien)
-
The markers for the observed fluxes in the SED plots have been tweaked to improve readability. (Médéric Boquien)
### Fixed
-
Make sure we can plot the PDF of equivalent widths. (Médéric Boquien)
-
Fix a crash when generating a mock catalogue containing intensive properties. (Médéric Boquien)
...
...
pcigale_plots/plot_types/sed.py
View file @
89401d95
...
...
@@ -259,9 +259,9 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
label
=
"Model fluxes"
)
mask_ok
=
np
.
logical_and
(
obs_fluxes
>
0.
,
obs_fluxes_err
>
0.
)
ax1
.
errorbar
(
filters_wl
[
mask_ok
],
obs_fluxes
[
mask_ok
],
yerr
=
obs_fluxes_err
[
mask_ok
],
ls
=
''
,
marker
=
'
s
'
,
yerr
=
obs_fluxes_err
[
mask_ok
],
ls
=
''
,
marker
=
'
o
'
,
label
=
'Observed fluxes'
,
markerfacecolor
=
'None'
,
markersize
=
6
,
markeredgecolor
=
'xkcd:pastel purple'
,
markersize
=
5
,
markeredgecolor
=
'xkcd:pastel purple'
,
color
=
'xkcd:light indigo'
,
capsize
=
0.
,
zorder
=
3
,
lw
=
1
)
mask_uplim
=
np
.
logical_and
(
np
.
logical_and
(
obs_fluxes
>
0.
,
obs_fluxes_err
<
0.
),
...
...
@@ -276,15 +276,15 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
obs_fluxes_err
<
-
9990.
*
k_corr_SED
)
if
not
mask_noerr
.
any
()
==
False
:
ax1
.
errorbar
(
filters_wl
[
mask_noerr
],
obs_fluxes
[
mask_noerr
],
ls
=
''
,
marker
=
'
s
'
,
markerfacecolor
=
'None'
,
markersize
=
6
,
markeredgecolor
=
'r'
,
ls
=
''
,
marker
=
'
p
'
,
markerfacecolor
=
'None'
,
markersize
=
5
,
markeredgecolor
=
'r'
,
label
=
'Observed fluxes, no errors'
,
capsize
=
0.
)
mask
=
np
.
where
(
obs_fluxes
>
0.
)
ax2
.
errorbar
(
filters_wl
[
mask
],
(
obs_fluxes
[
mask
]
-
mod_fluxes
[
mask
])
/
obs_fluxes
[
mask
],
yerr
=
obs_fluxes_err
[
mask
]
/
obs_fluxes
[
mask
],
marker
=
'_'
,
label
=
"(Obs-Mod)/Obs"
,
color
=
'k'
,
capsize
=
0.
,
ls
=
'None'
)
capsize
=
0.
,
ls
=
'None'
,
lw
=
1
)
ax2
.
plot
([
xmin
,
xmax
],
[
0.
,
0.
],
ls
=
'--'
,
color
=
'k'
)
ax2
.
set_xscale
(
'log'
)
ax2
.
minorticks_on
()
...
...
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