aboutsummaryrefslogtreecommitdiffstats
path: root/python/gui
diff options
context:
space:
mode:
Diffstat (limited to 'python/gui')
-rw-r--r--python/gui/static/js/odr-predistortion.js10
-rw-r--r--python/gui/templates/predistortion.html5
2 files changed, 15 insertions, 0 deletions
diff --git a/python/gui/static/js/odr-predistortion.js b/python/gui/static/js/odr-predistortion.js
index ff82142..59dcd82 100644
--- a/python/gui/static/js/odr-predistortion.js
+++ b/python/gui/static/js/odr-predistortion.js
@@ -39,13 +39,23 @@ function resultrefresh() {
if (data['statplot']) {
$('#dpdcapturestats').attr('src', data['statplot']);
}
+ else {
+ $('#dpdcapturestats').attr('src', "");
+ }
if (data['amplot']) {
$('#dpdamplot').attr('src', data['amplot']);
}
+ else {
+ $('#dpdamplot').attr('src', "");
+ }
+
if (data['pmplot']) {
$('#dpdpmplot').attr('src', data['pmplot']);
}
+ else {
+ $('#dpdpmplot').attr('src', "");
+ }
});
jqxhr.always(function() {
diff --git a/python/gui/templates/predistortion.html b/python/gui/templates/predistortion.html
index e21c688..d953dff 100644
--- a/python/gui/templates/predistortion.html
+++ b/python/gui/templates/predistortion.html
@@ -42,6 +42,11 @@
<div class="panel-heading">Capture Statistics</div>
<div class="panel-body">
<img id="dpdcapturestats" />
+ </div>
+ </div>
+ <div class="panel panel-default">
+ <div class="panel-heading">AM/AM and AM/PM Model</div>
+ <div class="panel-body">
<img id="dpdamplot" />
<img id="dpdpmplot" />
</div>