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
Sebastian Heimann
grond
Commits
fb6bcd56
Commit
fb6bcd56
authored
Mar 02, 2017
by
Sebastian Heimann
Browse files
can now change x axis ordering in sequence plots to 'misfit'
parent
6bc3b1a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plot.py
View file @
fb6bcd56
...
...
@@ -164,7 +164,7 @@ class GrondModel(object):
listener
()
def
draw_sequence_figures
(
model
,
plt
,
misfit_cutoff
=
None
):
def
draw_sequence_figures
(
model
,
plt
,
misfit_cutoff
=
None
,
sort_by
=
'iteration'
):
problem
=
model
.
problem
imodels
=
num
.
arange
(
model
.
nmodels
)
...
...
@@ -182,7 +182,13 @@ def draw_sequence_figures(model, plt, misfit_cutoff=None):
isort
=
num
.
argsort
(
gms
)[::
-
1
]
imodels
=
imodels
[
isort
]
if
sort_by
==
'iteration'
:
imodels
=
imodels
[
isort
]
elif
sort_by
==
'misfit'
:
imodels
=
num
.
arange
(
imodels
.
size
)
else
:
assert
False
gms
=
gms
[
isort
]
gms_softclip
=
gms_softclip
[
isort
]
xs
=
xs
[
isort
,
:]
...
...
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