| Last change
                  on this file since 990 was
                  923,
                  checked in by aslmd, 13 years ago | 
        
          | 
UTIL PYTHON planetoplot_v2
 
PPCLASS AND PPPLOT
 added global plot settings in pp() objects
self is returned for each method to allow e.g. one-line get + attribution
added labeling of 1D plots
fine-tuning of plot appearance (e.g. vector key)
corrected a problem with plotin (same object can be referred to all along)
fixed meanarea for 1D requests
 
PP.PY
 no more -f for pp.py (files are simply given as arguments!)
added missing options to pp.py
nice informative header
 
PP_RELOAD.PY
 pp_reload.py can now change colorbars and 1D markers
 
EXAMPLES
 general update of examples + few additions
added a nice example tide with mixed 2D+1D plots
 | 
        
          | 
              
                  Property svn:executable set to
                  * | 
        | File size:
            1.1 KB | 
      
      
        
  | Line |  | 
|---|
| 1 | #! /usr/bin/env python | 
|---|
| 2 | from ppclass import pp | 
|---|
| 3 |  | 
|---|
| 4 | ## AVERAGED PROFILE | 
|---|
| 5 | temp = pp() | 
|---|
| 6 | temp.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" | 
|---|
| 7 | temp.var = "temp" | 
|---|
| 8 | temp.x = "-180,180" | 
|---|
| 9 | temp.y = "-90,90" | 
|---|
| 10 | temp.t = "0,1" | 
|---|
| 11 | temp.get() | 
|---|
| 12 | temp.defineplot() | 
|---|
| 13 | temp.p[0].title = "This is an averaged temperature profile" | 
|---|
| 14 | temp.makeplot() | 
|---|
| 15 |  | 
|---|
| 16 | ## ZONAL MEAN | 
|---|
| 17 | u = pp() | 
|---|
| 18 | u.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" | 
|---|
| 19 | u.var = "u" | 
|---|
| 20 | u.x = "-180,180" | 
|---|
| 21 | u.y = None | 
|---|
| 22 | u.t = "0.5" | 
|---|
| 23 | u.filename = "zonalmean" | 
|---|
| 24 | u.get() | 
|---|
| 25 | u.defineplot() | 
|---|
| 26 | u.p[0].div = 30. | 
|---|
| 27 | u.p[0].colorb = "RdBu_r" | 
|---|
| 28 | u.p[0].title = "This is a zonal mean" | 
|---|
| 29 | u.makeplot() | 
|---|
| 30 |  | 
|---|
| 31 | ## ZONAL MINIMUM | 
|---|
| 32 | u.compute = "min" | 
|---|
| 33 | u.filename = "zonalmin" | 
|---|
| 34 | u.get() | 
|---|
| 35 | u.defineplot() | 
|---|
| 36 | u.p[0].div = 30. | 
|---|
| 37 | u.p[0].colorb = "cool" | 
|---|
| 38 | u.p[0].title = "This is minimum over zonal axis" | 
|---|
| 39 | u.makeplot() | 
|---|
| 40 |  | 
|---|
| 41 | ## ZONAL MAXIMUM | 
|---|
| 42 | u.compute = "max" | 
|---|
| 43 | u.filename = "myplot" | 
|---|
| 44 | u.get() | 
|---|
| 45 | u.defineplot() | 
|---|
| 46 | u.p[0].div = 30. | 
|---|
| 47 | u.p[0].colorb = "hot" | 
|---|
| 48 | u.p[0].title = "This is maximum over zonal axis" | 
|---|
| 49 | u.makeplot() | 
|---|
| 50 |  | 
|---|
| 51 | ## MAP OF MAXIMUM OVER TIME | 
|---|
| 52 | u.compute = "max" | 
|---|
| 53 | u.x = None | 
|---|
| 54 | u.y = None | 
|---|
| 55 | u.t = "0,1" | 
|---|
| 56 | u.z = 20000. | 
|---|
| 57 | u.get() | 
|---|
| 58 | u.defineplot() | 
|---|
| 59 | u.p[0].div = 30. | 
|---|
| 60 | u.p[0].title = "This is maximum over time" | 
|---|
| 61 | u.makeplot() | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.