Changeset 963


Ignore:
Timestamp:
May 18, 2013, 1:16:03 AM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON planetoplot_v2. coefficients on axis in pp.py. also do not use date when prescribed name.

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

Legend:

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

    r942 r963  
    7070parser.add_option('-S','--superpose',action='store_true',dest='superpose',default=False,help="[1D] use same axis for all plots")
    7171parser.add_option('-E','--label',action='append',dest='label',type="string",default=None,help="[1D] label for line")
     72parser.add_option('--xcoeff',action='append',dest='xcoeff',type="float",default=None,help="[1D] multiply x axis")
     73parser.add_option('--ycoeff',action='append',dest='ycoeff',type="float",default=None,help="[1D] multiply y axis")
    7274# -- 2D plot
    7375parser.add_option('-C','--colorb',action='append',dest='colorb',type="string",default=None,help="[2D] colormap: http://micropore.files.wordpress.com/2010/06/colormaps.png")
     
    127129user.folder = opt.folder
    128130user.out = opt.out
     131# if user wants to give a name, we drop the indication of date
     132if opt.filename != "myplot":
     133    user.includedate = False
    129134# define plot
    130135user.defineplot()
  • trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py

    r960 r963  
    10991099                try: self.p[iii].vmax = opt.vmax[0]
    11001100                except: pass
     1101            ###
     1102            try: self.p[iii].xcoeff = opt.xcoeff[iii]
     1103            except:
     1104                try: self.p[iii].xcoeff = opt.xcoeff[0]
     1105                except: pass
     1106            ###
     1107            try: self.p[iii].ycoeff = opt.ycoeff[iii]
     1108            except:
     1109                try: self.p[iii].ycoeff = opt.ycoeff[0]
     1110                except: pass
     1111
    11011112
    11021113##########################################################
Note: See TracChangeset for help on using the changeset viewer.