Skip to content
Snippets Groups Projects
Commit cb132c95 authored by mathias.chouet's avatar mathias.chouet
Browse files

Résultats multivariés: correction nombre d'abscisses

parent 4359a782
No related branches found
No related tags found
1 merge request!46Resolve "Fonctionnalité : plusieurs paramètres qui varient (Voir Jalhyd#62)"
......@@ -41,6 +41,9 @@ export class VarResults extends CalculatedParamResults implements PlottableData
*/
public chartY: string;
/** size of the longest variated parameter */
public size: number;
/**
* tableau des ordonnées du graphe des résultats variés
*/
......@@ -124,7 +127,8 @@ export class VarResults extends CalculatedParamResults implements PlottableData
// 2. variated param ?
for (let i = 0; i < this.variatedParameters.length; i++) {
if (this._variatedParams[i].symbol === symbol) {
for (const v of this.variatedParameters[i].valuesIterator) {
const iter = this.variatedParameters[i].getExtendedValuesIterator(this.size);
for (const v of iter) {
series.push(v);
}
}
......@@ -166,6 +170,15 @@ export class VarResults extends CalculatedParamResults implements PlottableData
});
}
// liste la plus longue
this.size = 0;
for (const v of this._variatedParams) {
const s = v.valuesIterator.count();
if (s > this.size) {
this.size = s;
}
}
// valeurs du paramètre à calculer
for (const r of this.result.resultElements) {
this._yValues.push(r.vCalc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment