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
9cb7c9f0
Commit
9cb7c9f0
authored
Oct 25, 2016
by
Gregory Ashton
Browse files
Adds title to twoFcumulative plot
parent
0fabad94
Changes
1
Show whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
9cb7c9f0
...
...
@@ -427,7 +427,7 @@ class ComputeFstat(object):
return
taus
,
np
.
array
(
twoFs
)
def
plot_twoF_cumulative
(
self
,
label
,
outdir
,
ax
=
None
,
c
=
'k'
,
savefig
=
True
,
**
kwargs
):
title
=
None
,
**
kwargs
):
taus
,
twoFs
=
self
.
calculate_twoF_cumulative
(
**
kwargs
)
if
ax
is
None
:
fig
,
ax
=
plt
.
subplots
()
...
...
@@ -436,6 +436,7 @@ class ComputeFstat(object):
kwargs
[
'tstart'
]))
ax
.
set_ylabel
(
r
'$\widetilde{2\mathcal{F}}_{\rm cumulative}$'
)
ax
.
set_xlim
(
0
,
taus
[
-
1
]
/
86400
)
ax
.
set_title
(
title
)
if
savefig
:
plt
.
savefig
(
'{}/{}_twoFcumulative.png'
.
format
(
outdir
,
label
))
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