Index: ../trunk-jpl/src/m/classes/plotoptions.js =================================================================== --- ../trunk-jpl/src/m/classes/plotoptions.js (revision 19943) +++ ../trunk-jpl/src/m/classes/plotoptions.js (revision 19944) @@ -5,170 +5,169 @@ function plotoptions(args) { //methods - this.disp = function (){ // {{{ - console.log(sprintf('\nplotoptions = \n')); - console.log(sprintf(' figurenumber: %i',this.figurenumber)); - console.log(sprintf(' numberofplots: %i',this.numberofplots)); - if (this.list.length){ - for (var i=0;inumberofplots){ + else if (plotnum === 'all'){ //pound all + for(var j=0;jnumberofplots){ throw Error(sprintf("%s%s%s%i%s\n",'plotoptions error message: ',field,' cannot be assigned (',plotnum,' exceeds maximum number of plot)')); - } - list[Number(plotnum)-1].addfield(field,rawlist[i][1]); - } - } - } - else{ //assign option field to corresponding subplot + } + list[Number(plotnum)-1].addfield(field,rawlist[i][1]); + } + } + } + else{ //assign option field to corresponding subplot - - //go through all subplot and assign to the first one free - var inc=0; - - while (incnumberofplots-1){ - console.log(sprintf("%s%s%s\n",'plot info message: too many ',rawlist[i][0],' options')); - } - } - } + if (inc>numberofplots-1){ + console.log(sprintf("%s%s%s\n",'plot info message: too many ',rawlist[i][0],' options')); + } + } + } - //check that there is no duplicates - for (var i=0;i