Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bedartha Goswami
uncertise-examples
Commits
159c994e
Commit
159c994e
authored
May 25, 2020
by
Norbert Marwan
Browse files
Python 3 compatibility
parent
5d18e05c
Changes
2
Hide whitespace changes
Inline
Side-by-side
get_pdfseries.py
View file @
159c994e
...
...
@@ -89,8 +89,8 @@ if __name__ == "__main__":
pdf1
=
norm
(
loc
=
x1s
[
i
],
scale
=
ss
)
pdf2
=
norm
(
loc
=
x2s
[
i
],
scale
=
ss
)
samp
=
np
.
r_
[
pdf1
.
rvs
(
ngrid
/
2
),
pdf2
.
rvs
(
ngrid
/
2
)
pdf1
.
rvs
(
int
(
ngrid
/
2
)
)
,
pdf2
.
rvs
(
int
(
ngrid
/
2
)
)
]
timeseries_grid
[:,
i
]
=
samp
kde
=
gaussian_kde
(
samp
)
...
...
plot_results.py
View file @
159c994e
...
...
@@ -89,7 +89,8 @@ if __name__ == "__main__":
# set up axes
# for analysis of PDFs
ax_a
=
fig
.
add_axes
([
lm1
,
bm1
,
wd1
,
ht1
])
ax_b
=
ax_a
.
twinx
()
#ax_b = ax_a.twinx()
ax_b
=
fig
.
add_axes
([
lm1
,
bm2
,
wd1
,
ht2
])
ax_b
.
set_position
([
lm1
,
bm2
,
wd1
,
ht2
])
ax_c
=
fig
.
add_axes
([
lm1
,
bm3
,
wd1
,
ht1
])
cx_a
=
fig
.
add_axes
([
lm2
,
bm1
,
wd2
,
ht1
])
...
...
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