Changeset 972 for trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
- Timestamp:
- May 24, 2013, 8:09:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r964 r972 1017 1017 # (except a few cases such as trans) 1018 1018 for iii in range(self.howmanyplots): 1019 if opt.void: 1020 self.p[iii].showcb = False 1021 else: 1022 self.p[iii].showcb = True 1019 1023 ### 1020 1024 try: self.p[iii].trans = opt.trans … … 1032 1036 except: pass 1033 1037 ### 1034 try: self.p[iii].title = opt.title[iii] 1035 except: 1038 if opt.void: 1039 self.p[iii].title = "" 1040 else: 1041 try: self.p[iii].title = opt.title[iii] 1042 except: 1036 1043 try: self.p[iii].title = opt.title[0] 1037 1044 except: pass 1038 1045 ### 1039 try: self.p[iii].xlabel = opt.xlabel[iii] 1040 except: 1046 if opt.void: 1047 self.p[iii].xlabel = "" 1048 else: 1049 try: self.p[iii].xlabel = opt.xlabel[iii] 1050 except: 1041 1051 try: self.p[iii].xlabel = opt.xlabel[0] 1042 1052 except: pass 1043 1053 ### 1044 try: self.p[iii].ylabel = opt.ylabel[iii] 1045 except: 1054 if opt.void: 1055 self.p[iii].ylabel = "" 1056 else: 1057 try: self.p[iii].ylabel = opt.ylabel[iii] 1058 except: 1046 1059 try: self.p[iii].ylabel = opt.ylabel[0] 1047 1060 except: pass … … 1111 1124 try: self.p[iii].ycoeff = opt.ycoeff[0] 1112 1125 except: pass 1126 ### 1127 try: self.p[iii].units = opt.units[iii] 1128 except: 1129 try: self.p[iii].units = opt.units[0] 1130 except: pass 1131 ### 1132 try: self.p[iii].wscale = opt.wscale[iii] 1133 except: 1134 try: self.p[iii].wscale = opt.wscale[0] 1135 except: pass 1136 1113 1137 1114 1138 … … 1251 1275 elif tabtime.ndim == 3: tabtime = tabtime[:,0,0] 1252 1276 elif tabtime.ndim == 4: tabtime = tabtime[:,0,0,0] 1253 # (now proceed) 1254 dafirst = tabtime[0] 1277 # (now proceed) (the +0. just ensures this is a number) 1278 dafirst = tabtime[0] + 0. 1255 1279 if self.dim_t == 1: 1256 1280 self.field_t = np.array([dafirst]) … … 1263 1287 except: 1264 1288 # ... or if a problem encountered, define a simple time axis 1289 if self.verbose: print "**** OK. There is something weird. Let us go for a simple time axis." 1265 1290 self.field_t = np.array(range(self.dim_t)) 1266 1291 self.name_t = "t grid points"
Note: See TracChangeset
for help on using the changeset viewer.