Ignore:
Timestamp:
May 18, 2013, 3:05:02 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON planetoplot_v2. added attributes showcb and res.

Location:
trunk/UTIL/PYTHON/planetoplot_v2
Files:
2 edited

Legend:

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

    r963 r964  
    146146                      folder="./",\
    147147                      includedate=True,\
     148                      res=150.,\
    148149                      xlabel=None,ylabel=None,\
    149150                      xcoeff=None,ycoeff=None,\
     
    190191        self.out = out
    191192        self.filename = filename
     193        self.res = res
    192194        self.folder = folder
    193195        self.includedate = includedate
     
    932934        print "**** PPCLASS. Done step: makeplot"
    933935        if (self.n == self.howmanyplots):
    934             ppplot.save(mode=self.out,filename=self.filename,folder=self.folder,custom=self.customplot,includedate=self.includedate)
     936            ppplot.save(mode=self.out,filename=self.filename,folder=self.folder,custom=self.customplot,includedate=self.includedate,res=self.res)
    935937            mpl.close()
    936938        # SAVE A PICKLE FILE WITH THE self.p ARRAY OF OBJECTS
  • trunk/UTIL/PYTHON/planetoplot_v2/ppplot.py

    r960 r964  
    488488                 vmin=None,\
    489489                 vmax=None,\
     490                 showcb=True,\
    490491                 colorvec="black"):
    491492        ## get initialization from parent class
     
    505506        self.area = area
    506507        self.vmin = vmin ; self.vmax = vmax
     508        self.showcb = showcb
    507509
    508510    # define_from_var
     
    683685        ### COLORBAR
    684686        ############################################################################################
    685         if self.trans > 0.:
     687        if self.trans > 0. and self.showcb:
    686688            ## draw colorbar. settings are different with projections. or if not mapmode.
    687689            if not self.mapmode: orientation=zeorientation ; frac = 0.075 ; pad = 0.03 ; lu = 0.5
Note: See TracChangeset for help on using the changeset viewer.