Changeset 20354


Ignore:
Timestamp:
03/25/16 12:06:08 (9 years ago)
Author:
dlcheng
Message:

CHG (javascript): Reverting incorrect movie handling changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_unit.js

    r20234 r20354  
    175175                                        }
    176176                                        else {
    177                                                 caxis = [ArrayMin(data[i].slice(0,-1)),ArrayMax(data[i].slice(0,-1))];
     177                                                caxis = [ArrayMin(data[i]),ArrayMax(data[i].slice(0,-1))];
    178178                                        }
    179179                                        datamin = caxis[0];
     
    185185                                        texcoords[i].itemSize = 2;
    186186                                        for(var j = 0; j < x.length; j++){
    187                                                 texcoords.push.apply(texcoords, [0.5, (data[i][j] - datamin) / datadelta]);
     187                                                texcoords[i][texcoords[i].length] = 0.5;
     188                                                texcoords[i][texcoords[i].length] = (data[i][j] - datamin) / datadelta;
    188189                                        }
    189190                                }
Note: See TracChangeset for help on using the changeset viewer.