Ignore:
Timestamp:
Oct 11, 2013, 3:38:41 AM (12 years ago)
Author:
aslmd
Message:

planetoplot_v2. added trans back showcb attributes to ppclass. simplified example scripts. added the web home page example.

Location:
trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/anomaly.py

    r1029 r1062  
    1818anomaly = ((simple-mean)/mean)*100.
    1919anomaly.filename = "anomaly"
    20 anomaly.defineplot()
    21 anomaly.p[0].title = "surface temperature anomaly"
    22 anomaly.p[0].units = '%'
    23 anomaly.makeplot()
     20anomaly.title = "surface temperature anomaly"
     21anomaly.units = '%'
     22anomaly.plot()
  • trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/les_psfc.py

    r1029 r1062  
    1717#les.stridey = 3
    1818les.filename = "les_psfc"
     19
    1920les.getplot()
     21
     22
  • trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/simple.py

    r1050 r1062  
    1919# we define the plot, then set a few personal stuff
    2020u.defineplot()
    21 u.p[0].title = "This is what we name $u$"
    22 u.p[0].proj = "robin"
     21u.title = "This is what we name $u$"
     22u.proj = "robin"
    2323u.filename = "simple"
    2424
     
    2828# we simply change the colorbar
    2929# ... no need to reload data
    30 u.p[0].colorbar = "RdBu"
     30u.colorbar = "RdBu"
    3131u.filename = "myplot"
    3232u.makeplot()
  • trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/tide.py

    r1050 r1062  
    1111waveref.title = "$p_s$ diurnal anomaly"
    1212waveref.proj = "moll"
     13
    1314waveref.vmin = -10
    1415waveref.vmax = 10
  • trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/vector.py

    r1050 r1062  
    2424u.getplot()
    2525
    26 
    27 
    2826u.z = "50"
    2927u.filename = "myplot"
    3028u.getplot()
    3129
    32 
    33 u.p[0].colorbar = "jet"
    34 u.p[0].trans = 0.0
    35 u.p[0].back = "vis"
     30u.colorbar = "jet"
     31u.trans = 0.0
     32u.back = "vis"
    3633
    3734u.makeplot()
  • trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/zonalcontour.py

    r1050 r1062  
    1111u.get()
    1212u.defineplot()
    13 u.p[0].div = 30.
    14 u.p[0].colorbar = "spectral"
     13u.div = 30.
     14u.colorbar = "spectral"
    1515u.makeplot()
    16 
    1716
    1817u.var = ["u","u"]
     
    2019u.get()
    2120u.defineplot()
    22 u.p[0].div = 30.
     21u.div = 30.
    2322u.makeplot()
  • trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/zonalmean.py

    r1050 r1062  
    1111temp.get()
    1212temp.defineplot()
    13 temp.p[0].title = "This is an averaged temperature profile"
     13temp.title = "This is an averaged temperature profile"
    1414temp.makeplot()
    1515
     
    2424u.get()
    2525u.defineplot()
    26 u.p[0].div = 30.
    27 u.p[0].colorbar = "RdBu_r"
    28 u.p[0].title = "This is a zonal mean"
     26u.div = 30.
     27u.colorbar = "RdBu_r"
     28u.title = "This is a zonal mean"
    2929u.makeplot()
    3030
     
    3434u.get()
    3535u.defineplot()
    36 u.p[0].div = 30.
    37 u.p[0].colorbar = "cool"
    38 u.p[0].title = "This is minimum over zonal axis"
     36u.div = 30.
     37u.colorbar = "cool"
     38u.title = "This is minimum over zonal axis"
    3939u.makeplot()
    4040
     
    4444u.get()
    4545u.defineplot()
    46 u.p[0].div = 30.
    47 u.p[0].colorbar = "hot"
    48 u.p[0].title = "This is maximum over zonal axis"
     46u.div = 30.
     47u.colorbar = "hot"
     48u.title = "This is maximum over zonal axis"
    4949u.makeplot()
    5050
     
    5757u.get()
    5858u.defineplot()
    59 u.p[0].div = 30.
    60 u.p[0].title = "This is maximum over time"
     59u.div = 30.
     60u.title = "This is maximum over time"
     61
     62u.out = "png"
     63
    6164u.makeplot()
Note: See TracChangeset for help on using the changeset viewer.