Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sylvia Biscoveanu
bilby
Commits
b3247ab7
Commit
b3247ab7
authored
5 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Default to 123-sigma for PP tests plots
- Also adjusts the legend to make -- lines more visible
parent
18d7219f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/core/result.py
+4
-4
4 additions, 4 deletions
bilby/core/result.py
with
4 additions
and
4 deletions
bilby/core/result.py
+
4
−
4
View file @
b3247ab7
...
...
@@ -1526,7 +1526,7 @@ def plot_multiple(results, filename=None, labels=None, colours=None,
return
fig
def
make_pp_plot
(
results
,
filename
=
None
,
save
=
True
,
confidence_interval
=
0.9
,
def
make_pp_plot
(
results
,
filename
=
None
,
save
=
True
,
confidence_interval
=
[
0.68
,
0.95
,
0.997
]
,
lines
=
None
,
legend_fontsize
=
'
x-small
'
,
keys
=
None
,
title
=
True
,
confidence_interval_alpha
=
0.1
,
**
kwargs
):
...
...
@@ -1541,8 +1541,8 @@ def make_pp_plot(results, filename=None, save=True, confidence_interval=0.9,
The name of the file to save, the default is
"
outdir/pp.png
"
save: bool, optional
Whether to save the file, default=True
confidence_interval: float, optional
The confidence interval to be plotted, defaulting to
0.9 (90%)
confidence_interval:
(
float,
list),
optional
The confidence interval to be plotted, defaulting to
1-2-3 sigma
lines: list
If given, a list of matplotlib line formats to use, must be greater
than the number of parameters.
...
...
@@ -1628,7 +1628,7 @@ def make_pp_plot(results, filename=None, save=True, confidence_interval=0.9,
len
(
results
),
pvals
.
combined_pvalue
))
ax
.
set_xlabel
(
"
C.I.
"
)
ax
.
set_ylabel
(
"
Fraction of events in C.I.
"
)
ax
.
legend
(
linewidth
=
1
,
labelspacing
=
0.25
,
fontsize
=
legend_fontsize
)
ax
.
legend
(
linewidth
=
1
,
handlelength
=
2
,
labelspacing
=
0.25
,
fontsize
=
legend_fontsize
)
ax
.
set_xlim
(
0
,
1
)
ax
.
set_ylim
(
0
,
1
)
fig
.
tight_layout
()
...
...
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