diff --git a/src/browser/js/app/widgets/plots/_plots_base.js b/src/browser/js/app/widgets/plots/_plots_base.js index bc39f7b2..1fce91bb 100644 --- a/src/browser/js/app/widgets/plots/_plots_base.js +++ b/src/browser/js/app/widgets/plots/_plots_base.js @@ -19,6 +19,8 @@ module.exports = class _plots_base extends _canvas_base { this.linkedWidgets = [] this.rangeX = this.getProp('rangeX') || {min:0,max:1} this.rangeY = this.getProp('rangeY') || {min:0,max:1} + this.logScaleX = this.getProp('logScaleX') + this.logScaleY = this.getProp('logScaleY') this.pips = { x : { min: Math.abs(this.rangeX.min)>=1000?this.rangeY.min/1000+'k':this.rangeX.min, @@ -134,25 +136,18 @@ module.exports = class _plots_base extends _canvas_base { var points = [] for (let i in this.data) { - if (this.data[i][1]>this.rangeY.max || this.data[i][1]this.rangeX.max || this.data[i][0]= 1000? this.getProp('range').min/1000+'k' : this.getProp('range').min this.pips.y.max = Math.abs(this.getProp('range').max) >= 1000? this.getProp('range').max/1000+'k' : this.getProp('range').max this.pips.x = false + this.rangeY = this.getProp('range') || {min:0,max:1} + this.logScaleY = this.getProp('logScale') this.length = Math.round(clip(this.fps * this.getProp('duration'), [8, 4096])) - this.data = new Array(this.length) + this.data = new Array(this.length).fill(this.rangeY.min) this.value = this.getProp('range').min this.cancel = false this.looping = false @@ -106,33 +108,6 @@ module.exports = class Visualizer extends _plots_base { } - - draw_data() { - - var first = true - var point = [] - - for (var i=0;i