Changeset 963 for trunk/UTIL/PYTHON
- Timestamp:
- May 18, 2013, 1:16:03 AM (12 years ago)
- Location:
- trunk/UTIL/PYTHON/planetoplot_v2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/pp.py
r942 r963 70 70 parser.add_option('-S','--superpose',action='store_true',dest='superpose',default=False,help="[1D] use same axis for all plots") 71 71 parser.add_option('-E','--label',action='append',dest='label',type="string",default=None,help="[1D] label for line") 72 parser.add_option('--xcoeff',action='append',dest='xcoeff',type="float",default=None,help="[1D] multiply x axis") 73 parser.add_option('--ycoeff',action='append',dest='ycoeff',type="float",default=None,help="[1D] multiply y axis") 72 74 # -- 2D plot 73 75 parser.add_option('-C','--colorb',action='append',dest='colorb',type="string",default=None,help="[2D] colormap: http://micropore.files.wordpress.com/2010/06/colormaps.png") … … 127 129 user.folder = opt.folder 128 130 user.out = opt.out 131 # if user wants to give a name, we drop the indication of date 132 if opt.filename != "myplot": 133 user.includedate = False 129 134 # define plot 130 135 user.defineplot() -
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r960 r963 1099 1099 try: self.p[iii].vmax = opt.vmax[0] 1100 1100 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 1101 1112 1102 1113 ##########################################################
Note: See TracChangeset
for help on using the changeset viewer.