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
Gregory Ashton
PyFstat
Commits
5ccd2e3e
Commit
5ccd2e3e
authored
Dec 01, 2017
by
Gregory Ashton
Browse files
Simplify projection matrix plots
parent
9c2a9c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/grid_based_searches.py
View file @
5ccd2e3e
...
...
@@ -755,7 +755,8 @@ class EarthTest(GridSearch):
F_at_zero
,
marginalised_F
,
max_F
,
max_F_params
))
return
F_at_zero
-
marginalised_F
,
(
F_at_zero
-
max_F
)
/
F_at_zero
def
plot_corner
(
self
,
prior_widths
=
None
,
fig
=
None
,
axes
=
None
):
def
plot_corner
(
self
,
prior_widths
=
None
,
fig
=
None
,
axes
=
None
,
projection
=
'log_mean'
):
Bsa
,
FmaxMismatch
=
self
.
marginalised_bayes_factor
(
prior_widths
)
data
=
self
.
data
[:,
-
1
].
reshape
(
...
...
@@ -770,7 +771,7 @@ class EarthTest(GridSearch):
from
projection_matrix
import
projection_matrix
fig
,
axes
=
projection_matrix
(
data
,
xyz
,
projection
=
'log_mean'
,
fig
,
axes
=
projection_matrix
(
data
,
xyz
,
projection
=
projection
,
factor
=
1.6
,
labels
=
labels
)
axes
[
-
1
][
-
1
].
axvline
((
lal
.
DAYJUL_SI
-
lal
.
DAYSID_SI
)
/
60.0
,
color
=
'C3'
)
plt
.
suptitle
(
...
...
@@ -782,13 +783,6 @@ class EarthTest(GridSearch):
fig
.
savefig
(
'{}/{}_projection_matrix.png'
.
format
(
self
.
outdir
,
self
.
label
))
fig
,
axes
=
projection_matrix
(
data
,
xyz
,
projection
=
'max_slice'
,
factor
=
1.6
,
labels
=
labels
)
axes
[
-
1
][
-
1
].
axvline
((
lal
.
DAYJUL_SI
-
lal
.
DAYSID_SI
)
/
60.0
,
color
=
'C3'
)
plt
.
suptitle
(
'T={:.1f} days, $f$={:.2f} Hz'
.
format
(
self
.
duration
/
86400
,
self
.
F0
),
y
=
0.99
,
size
=
14
)
fig
.
savefig
(
'{}/{}_max_slice.png'
.
format
(
self
.
outdir
,
self
.
label
))
def
plot
(
self
,
key
,
prior_widths
=
None
):
Bsa
,
FmaxMismatch
=
self
.
marginalised_bayes_factor
(
prior_widths
)
...
...
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