Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Heimann
grond
Commits
167933fb
Commit
167933fb
authored
May 12, 2016
by
Sebastian Heimann
Browse files
jointpar figures: add kwarg to include only certain parameters
parent
55842e44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plot.py
View file @
167933fb
...
...
@@ -316,10 +316,11 @@ def draw_sequence_figures(model, plt, misfit_cutoff=None):
def
draw_jointpar_figures
(
model
,
plt
,
misfit_cutoff
=
None
,
ibootstrap
=
None
,
color
=
None
,
exclude
=
None
):
exclude
=
None
,
include
=
None
):
color
=
'm
agnitude
'
color
=
'm
isfit
'
# exclude = ['duration']
# include = ['magnitude', 'rel_moment_iso', 'rel_moment_clvd', 'depth']
neach
=
6
figsize
=
(
8
,
8
)
# cmap = cm.YlOrRd
...
...
@@ -379,7 +380,7 @@ def draw_jointpar_figures(
iselected
=
0
for
ipar
in
xrange
(
problem
.
ncombined
):
par
=
problem
.
combined
[
ipar
]
if
exclude
and
par
.
name
in
exclude
:
if
exclude
and
par
.
name
in
exclude
or
include
and
par
.
name
not
in
include
:
continue
smap
[
iselected
]
=
ipar
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment