Changeset 204 for trunk/MESOSCALE/PLOT/PYTHON/mylib
- Timestamp:
- Jul 11, 2011, 1:53:25 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/PLOT/PYTHON/mylib/myplot.py
r202 r204 264 264 265 265 def fmtvar (whichvar="def"): 266 267 268 269 270 271 272 273 274 275 276 266 fmtvar = { \ 267 "tk": "%.0f",\ 268 "tpot": "%.0f",\ 269 "def": "%.1e",\ 270 "PTOT": "%.0f",\ 271 "HGT": "%.1e",\ 272 "USTM": "%.2f",\ 273 } 274 if whichvar not in fmtvar: 275 whichvar = "def" 276 return fmtvar[whichvar] 277 277 278 278 def defcolorb (whichone="def"): 279 whichcolorb = { \ 280 "def": "spectral",\ 281 "HGT": "spectral",\ 282 "tk": "gist_heat",\ 283 "QH2O": "PuBu",\ 284 } 285 if whichone not in whichcolorb: 286 whichone = "def" 287 return whichcolorb[whichone] 279 whichcolorb = { \ 280 "def": "spectral",\ 281 "HGT": "spectral",\ 282 "tk": "gist_heat",\ 283 "QH2O": "PuBu",\ 284 "USTM": "YlOrRd",\ 285 #"RdPu",\ 286 } 287 if whichone not in whichcolorb: 288 whichone = "def" 289 return whichcolorb[whichone] 288 290 289 291 def definecolorvec (whichone="def"):
Note: See TracChangeset
for help on using the changeset viewer.