diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-12-19 16:29:39 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-12-19 16:29:39 +0100 |
commit | 49620ea6940543a875e0499a1554b33ffb85fa85 (patch) | |
tree | 9576eaa3311e56992168165245b20626941d7f78 /python/gui/static/js/odr-predistortion.js | |
parent | f4ca82137e850e30d31e7008b34800d8b2699e5d (diff) | |
download | dabmod-49620ea6940543a875e0499a1554b33ffb85fa85.tar.gz dabmod-49620ea6940543a875e0499a1554b33ffb85fa85.tar.bz2 dabmod-49620ea6940543a875e0499a1554b33ffb85fa85.zip |
GUI: Combine model plots into single plot
Diffstat (limited to 'python/gui/static/js/odr-predistortion.js')
-rw-r--r-- | python/gui/static/js/odr-predistortion.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/python/gui/static/js/odr-predistortion.js b/python/gui/static/js/odr-predistortion.js index 59dcd82..f46219c 100644 --- a/python/gui/static/js/odr-predistortion.js +++ b/python/gui/static/js/odr-predistortion.js @@ -43,18 +43,13 @@ function resultrefresh() { $('#dpdcapturestats').attr('src', ""); } - if (data['amplot']) { - $('#dpdamplot').attr('src', data['amplot']); - } - else { - $('#dpdamplot').attr('src', ""); - } + $('#dpdmodeldata').html(data['modeldata']); - if (data['pmplot']) { - $('#dpdpmplot').attr('src', data['pmplot']); + if (data['modelplot']) { + $('#dpdmodelplot').attr('src', data['modelplot']); } else { - $('#dpdpmplot').attr('src', ""); + $('#dpdmodelplot').attr('src', ""); } }); |