--- a/svghmi/widget_xygraph.ysl2 Thu Nov 24 11:47:56 2022 +0100
+++ b/svghmi/widget_xygraph.ysl2 Thu Nov 24 12:05:43 2022 +0100
@@ -58,20 +58,21 @@
let y_min = Infinity, y_max = -Infinity;
// Compute visible Y range by merging fixed curves Y ranges
- for(let minmax of this.minmaxes){
- let [min,max] = minmax;
+ for(let varopts of this.variables_options){ + let minmax = varopts.minmax + let [min,max] = minmax; if(y_min !== Infinity && y_max !== -Infinity){
- this.fixed_y_range = true;
+ this.fixed_y_range = true; - this.fixed_y_range = false;
+ this.fixed_y_range = false;