| 
                Last change
                  on this file since 1004 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:
            1008 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #! /usr/bin/env python | 
|---|
| 2 | from ppclass import pp | 
|---|
| 3 |  | 
|---|
| 4 | gw = pp() | 
|---|
| 5 | gw.file = "/home/aymeric/Big_Data/GALE/wrfout_d03_2024-06-09_00:00:00_z" | 
|---|
| 6 | gw.var = ["W","tk"] | 
|---|
| 7 | gw.vargoal = ["main","contour"] | 
|---|
| 8 | gw.x = None | 
|---|
| 9 | gw.y = -5. | 
|---|
| 10 | gw.z = None | 
|---|
| 11 | gw.t = 5. | 
|---|
| 12 | gw.verbose = True | 
|---|
| 13 | gw.filename = "gw" | 
|---|
| 14 |  | 
|---|
| 15 | # we define global settings for plot | 
|---|
| 16 | # (must be done before defineplot) | 
|---|
| 17 | gw.colorb = "RdBu_r" | 
|---|
| 18 | gw.vmin = -1. ; gw.vmax = 1. | 
|---|
| 19 | gw.div = 30 | 
|---|
| 20 | gw.xlabel = "East longitude (deg)" | 
|---|
| 21 | gw.ycoeff = 1./1000. | 
|---|
| 22 | gw.ylabel = "Altitude above MOLA reference (km)" | 
|---|
| 23 |  | 
|---|
| 24 | # we define, get field and define, get plot | 
|---|
| 25 | gw.getplot() | 
|---|
| 26 |  | 
|---|
| 27 | # we keep the same object for another plot of a different kind | 
|---|
| 28 | gw.vargoal = ["main","main"] | 
|---|
| 29 | gw.out = "png" | 
|---|
| 30 | gw.getdefineplot() | 
|---|
| 31 |  | 
|---|
| 32 | # NB: global plot settings are defined in gw !! | 
|---|
| 33 | # ... so we redefine plot settings for the plot on the right | 
|---|
| 34 | gw.p[1].define_from_var() # we define colors, etc... from variable | 
|---|
| 35 | gw.p[1].vmin = None # we reinitialize to default for min bounds | 
|---|
| 36 | gw.p[1].vmax = None # we reinitialize to default for max bounds | 
|---|
| 37 | gw.makeplot() | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.