Changeset 13969


Ignore:
Timestamp:
11/15/12 14:22:00 (12 years ago)
Author:
cborstad
Message:

CHG: make sure data has the same rank as x,y arrays for plotting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/processdata.py

    r13957 r13969  
    6969        #control arrow density if quiver plot
    7070
     71        #convert rank-2 array to rank-1
     72        if npy.ndim(data)==2 and npy.shape(data)[1]==1:
     73                data=data.reshape(-1,)
     74
    7175        #if datatype is still zero, error out
    7276        if datatype==0:
Note: See TracChangeset for help on using the changeset viewer.