Changeset 1131 for trunk


Ignore:
Timestamp:
Dec 23, 2013, 10:06:13 AM (11 years ago)
Author:
aslmd
Message:

PLANETOPLOT. made 90N reappear. changed date format so that files are in chronological order.

File:
1 edited

Legend:

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

    r1117 r1131  
    313313          if includedate:
    314314              for ttt in timelib.gmtime():
    315                   name = name + "_" + str(ttt)
     315                  name = name + "_" + "%03d" % (ttt)
    316316          name = name +"."+mode
    317317          ## save file
     
    322322          else:
    323323              # ... mapping mode, adapted space for labels etc...
     324              # TBD: not impacted by pad_inches_value. why?
    324325              mpl.savefig(name,dpi=res)
    325326      else:
     
    762763                mertab = np.r_[0.:360.:steplon]
    763764            merlab = [0,0,0,1]
    764             partab = np.r_[-90.:90.:steplat] ; parlab = [1,0,0,0]
     765            partab = np.r_[-90.:90.+steplat:steplat] ; parlab = [1,0,0,0]
    765766            format = '%.1f'
    766767            # -- center of domain and bounding lats
     
    779780                if self.proj in ["robin"]: steplon = 90.
    780781                mertab = np.r_[-360.:360.:steplon]
    781                 partab = np.r_[-90.:90.:steplat]
     782                partab = np.r_[-90.:90.+steplat:steplat]
    782783                if self.proj == "ortho":
    783784                    merlab = [0,0,0,0] ; parlab = [0,0,0,0]
Note: See TracChangeset for help on using the changeset viewer.