summaryrefslogtreecommitdiffstats
path: root/python/gui
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-18 16:53:56 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-18 16:53:56 +0100
commit9d2c85f7a2a23fcf9ce3c842d86227afed43a153 (patch)
treefe3961130d308212047381eb23a8d2b6e2065dfe /python/gui
parente83e1324a50055a4b972b78e26383df7ee290fee (diff)
downloaddabmod-9d2c85f7a2a23fcf9ce3c842d86227afed43a153.tar.gz
dabmod-9d2c85f7a2a23fcf9ce3c842d86227afed43a153.tar.bz2
dabmod-9d2c85f7a2a23fcf9ce3c842d86227afed43a153.zip
GUI: Automatically iterate captures and show model plots
Diffstat (limited to 'python/gui')
-rw-r--r--python/gui/static/js/odr-predistortion.js7
-rw-r--r--python/gui/templates/predistortion.html2
2 files changed, 9 insertions, 0 deletions
diff --git a/python/gui/static/js/odr-predistortion.js b/python/gui/static/js/odr-predistortion.js
index e9f7c96..ff82142 100644
--- a/python/gui/static/js/odr-predistortion.js
+++ b/python/gui/static/js/odr-predistortion.js
@@ -39,6 +39,13 @@ function resultrefresh() {
if (data['statplot']) {
$('#dpdcapturestats').attr('src', data['statplot']);
}
+
+ if (data['amplot']) {
+ $('#dpdamplot').attr('src', data['amplot']);
+ }
+ if (data['pmplot']) {
+ $('#dpdpmplot').attr('src', data['pmplot']);
+ }
});
jqxhr.always(function() {
diff --git a/python/gui/templates/predistortion.html b/python/gui/templates/predistortion.html
index adbba7e..e21c688 100644
--- a/python/gui/templates/predistortion.html
+++ b/python/gui/templates/predistortion.html
@@ -42,6 +42,8 @@
<div class="panel-heading">Capture Statistics</div>
<div class="panel-body">
<img id="dpdcapturestats" />
+ <img id="dpdamplot" />
+ <img id="dpdpmplot" />
</div>
</div>