Changeset 1040 for trunk/UTIL


Ignore:
Timestamp:
Sep 13, 2013, 8:41:13 PM (11 years ago)
Author:
aslmd
Message:

UTIL PYTHON. previous commit breaks stuff. added a flag set to false to wait for a better solution....

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/ppplot.py

    r1039 r1040  
    578578                 stridevecx=1,\
    579579                 stridevecy=1,\
     580                 leftcorrect=False,\
    580581                 colorvec="black"):
    581582        ## get initialization from parent class
     
    598599        self.stridevecx = stridevecx
    599600        self.stridevecy = stridevecy
     601        self.leftcorrect = leftcorrect
    600602
    601603    # define_from_var
     
    772774                        llcrnrlat=wlat[0],urcrnrlat=wlat[1],\
    773775                        llcrnrlon=wlon[0],urcrnrlon=wlon[1])
    774             # some projections need to be translated to the left for colorbar + labels
    775             if self.proj in ["ortho","cyl"]:
     776            # in some case need to translated to the left for colorbar + labels
     777            # TBD: break stuff. a better solution should be found.
     778            if self.leftcorrect:
    776779                ax = mpl.gca()
    777780                pos = ax.get_position().bounds
Note: See TracChangeset for help on using the changeset viewer.