Changeset 886 for trunk/UTIL


Ignore:
Timestamp:
Feb 17, 2013, 5:47:42 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON. png thumbnails are now hidden and name of pic does not have _res anymore

Location:
trunk/UTIL/PYTHON
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/myplot.py

    r877 r886  
    663663    from os import system
    664664    addstr = ""
    665     if res is not None:
     665    if res is not None and disp:
    666666        res = int(res)
    667667        addstr = "_"+str(res)
  • trunk/UTIL/PYTHON/planetoplot.py

    r877 r886  
    248248                  step = nc.variables[letime][1] - dafirst
    249249                  time = np.arange(dafirst,dalast,step)
     250                  print "Time (start,stop,nvalues)",dafirst,dalast,timelength
    250251              else:
    251252                  ### if the time record is not too long, what follows is pretty quick
     
    10081009        print "********** SAVE ", save
    10091010        if save == 'png':
    1010             if display: myplot.makeplotres(zeplot,res=100.,pad_inches_value=pad_inches_value) #,erase=True)  ## a miniature
     1011            if display: myplot.makeplotres('.thumb',res=50.,pad_inches_value=pad_inches_value) #,erase=True)  ## a miniature
    10111012            myplot.makeplotres(zeplot,res=resolution,pad_inches_value=pad_inches_value,disp=False)
    10121013        elif save in ['eps','svg','pdf']:     myplot.makeplotres(zeplot,pad_inches_value=pad_inches_value,disp=False,ext=save)
Note: See TracChangeset for help on using the changeset viewer.